cant install hr module with docker compose

cant install hr module with docker compose
Installing hrms…
An error occurred while installing hrms: cannot import name ‘_’ from ‘frappe.desk.page.setup_wizard.install_fixtures’ (/home/frappe/frappe-bench/apps/frappe/frappe/desk/page/setup_wizard/install_fixtures.py)
Traceback with variables (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 444, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = {‘sites’: [‘frontend’], ‘force’: False, ‘verbose’: False, ‘profile’: False}
apps = (‘hrms’,)
force = False
install_app = <function install_app at 0x7fa5fa42db20>
filelock = <function filelock at 0x7fa5fa41ed40>
exit_code = 0
site = ‘frontend’
app = ‘hrms’
err = ImportError("cannot import name '
’ from ‘frappe.desk.page.setup_wizard.install_fixtures’ (apps/frappe/frappe/desk/page/setup_wizard/install_fixtures.py)")
File “apps/frappe/frappe/installer.py”, line 311, in install_app
frappe.get_attr(after_install)()
name = ‘hrms’
verbose = False
set_as_patched = True
force = False
sync_jobs = <function sync_jobs at 0x7fa5f8ed5440>
sync_for = <function sync_for at 0x7fa5f8ed6480>
sync_customizations = <function sync_customizations at 0x7fa5fa3c76a0>
sync_fixtures = <function sync_fixtures at 0x7fa5f8ed6660>
app_hooks = {‘accounting_dimension_doctypes’: [‘Expense Claim’, ‘Expense Claim Detail’, ‘Expense Taxes and Charges’, ‘Payroll Entry’], ‘add_to_apps_screen’: [{‘name’: ‘hrms’, ‘logo’: ‘/assets/hrms/images/frappe-hr-logo.svg’, ‘title’: ‘Frappe HR’, ‘route’: ‘/app/hr’, ‘has_permission’: ‘hrms.hr.utils.check_app_permission’}], ‘advance_payment_payable_doctypes’: [‘Gratuity’, ‘Employee Advance’], ‘after_app_install’: [‘hrms.setup.after_app_install’], ‘after_install’: [‘hrms.install.after_install’], ‘after_migrate’: [‘hrms.setup.update_select_perm_after_install’], ‘app_description’: [‘Modern HR and Payroll Software’], ‘app_email’: [‘contact@frappe.io’], ‘app_home’: [‘/app/hr’], ‘app_include_css’: [‘hrms.bundle.css’], ‘app_include_js’: [‘hrms.bundle.js’], ‘app_license’: [‘GNU General Public License (v3)’], ‘app_logo_url’: [‘/assets/hrms/images/frappe-hr-logo.svg’], ‘app_name’: [‘hrms’], ‘app_publisher’: [‘Frappe Technologies Pvt. Ltd.’], ‘app_title’: [‘Frappe HR’], ‘bank_reconciliation_doctypes’: ['Expen…
installed_apps = [‘frappe’, ‘erpnext’]
app = ‘frappe/erpnext’
required_app = ‘erpnext’
after_install = ‘hrms.install.after_install’
File “apps/frappe/frappe/init.py”, line 1708, in get_attr
return getattr(get_module(modulename), methodname)
method_string = ‘hrms.install.after_install’
app_name = ‘hrms’
modulename = ‘hrms.install’
methodname = ‘after_install’
File “apps/frappe/frappe/init.py”, line 1429, in get_module
return importlib.import_module(modulename)
modulename = ‘hrms.install’
File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
name = ‘hrms.install’
package = None
level = 0
File “”, line 1204, in _gcd_import
name = ‘hrms.install’
package = None
level = 0
File “”, line 1176, in find_and_load
name = ‘hrms.install’
import
= <function _gcd_import at 0x7fa5fc053d80>
module = Traceback (most recent call last):
File “env/lib/python3.11/site-packages/traceback_with_variables/core.py”, line 222, in to_cropped_str
raw = print
(obj)
^^^^^^^^^^^
File “apps/frappe/frappe/utils/init.py”, line 328, in dict_printer
if key in v:
^^^^^^^^
TypeError: argument of type ‘object’ is not iterable

File “”, line 1147, in find_and_load_unlocked
name = ‘hrms.install’
import
= <function _gcd_import at 0x7fa5fc053d80>
path = [‘apps/hrms/hrms’]
parent = ‘hrms’
parent_spec = ModuleSpec(name=‘hrms’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa5fa4ef310>, origin=‘apps/hrms/hrms/init.py’, submodule_search_locations=[‘apps/hrms/hrms’])
parent_module = <module ‘hrms’ from ‘apps/hrms/hrms/init.py’>
child = ‘install’
spec = ModuleSpec(name=‘hrms.install’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa5f6fc4250>, origin=‘apps/hrms/hrms/install.py’)
File “”, line 690, in _load_unlocked
spec = ModuleSpec(name=‘hrms.install’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa5f6fc4250>, origin=‘apps/hrms/hrms/install.py’)
module = <module ‘hrms.install’ from ‘apps/hrms/hrms/install.py’>
File “”, line 940, in exec_module
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fa5f6fc4250>
module = <module ‘hrms.install’ from ‘apps/hrms/hrms/install.py’>
code = <code object at 0x7fa5f6daea30, file “apps/hrms/hrms/install.py”, line 1>
File “”, line 241, in _call_with_frames_removed
f =
args = (<code object at 0x7fa5f6daea30, file “apps/hrms/hrms/install.py”, line 1>, {‘name’: ‘hrms.install’, ‘doc’: None, ‘package’: ‘hrms’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x7fa5f6fc4250>, ‘spec’: ModuleSpec(name=‘hrms.install’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa5f6fc4250>, origin=‘apps/hrms/hrms/install.py’), ‘file’: ‘apps/hrms/hrms/install.py’, ‘cached’: ‘apps/hrms/hrms/pycache/install.cpython-311.pyc’, ‘builtins’: {‘name’: ‘builtins’, ‘doc’: "Built-in functions, types, exceptions, and other objects.\n\nThis module provides direct access to all ‘built-in’\nidentifiers of Python; for example, builtins.len is\nthe full name for the built-in function len().\n\nThis module is not normally accessed explicitly by most\napplications, but can be useful in modules that provide\nob…
kwds = {}
File “apps/hrms/hrms/install.py”, line 3, in
from hrms.setup import after_install as setup
name = ‘hrms.install’
doc = None
package = ‘hrms’
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7fa5f6fc4250>
spec = ModuleSpec(name=‘hrms.install’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa5f6fc4250>, origin=‘apps/hrms/hrms/install.py’)
file = ‘apps/hrms/hrms/install.py’
cached = ‘apps/hrms/hrms/pycache/install.cpython-311.pyc’
builtins = {‘name’: ‘builtins’, ‘doc’: “Built-in functions, types, exceptions, and other objects.\n\nThis module provides direct access to all ‘built-in’\nidentifiers of Python; for example, builtins.len is\nthe full name for the built-in function len().\n\nThis module is not normally accessed explicitly by most\napplications, but can be useful in modules that provide\nobjects with the same name as a built-in value, but in\nwhich the built-in of that name is also needed.”, ‘package’: ‘’, ‘loader’: <class ‘_frozen_importlib.BuiltinImporter’>, ‘spec’: ModuleSpec(name=‘builtins’, loader=<class ‘_frozen_importlib.BuiltinImporter’>, origin=‘built-in’), ‘build_class’: , ‘import’: , ‘abs’: , ‘all’: , ‘any’: , ‘ascii’: , ‘bin’: , ‘breakpoint’: , ‘callable’: <built-in f…
click = <module ‘click’ from ‘env/lib/python3.11/site-packages/click/init.py’>
File “apps/hrms/hrms/setup.py”, line 5, in
from frappe.desk.page.setup_wizard.install_fixtures import (
name = ‘hrms.setup’
doc = None
package = ‘hrms’
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7fa5f6fc4590>
spec = ModuleSpec(name=‘hrms.setup’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa5f6fc4590>, origin=‘apps/hrms/hrms/setup.py’)
file = ‘apps/hrms/hrms/setup.py’
cached = ‘apps/hrms/hrms/pycache/setup.cpython-311.pyc’
builtins = {‘name’: ‘builtins’, ‘doc’: “Built-in functions, types, exceptions, and other objects.\n\nThis module provides direct access to all ‘built-in’\nidentifiers of Python; for example, builtins.len is\nthe full name for the built-in function len().\n\nThis module is not normally accessed explicitly by most\napplications, but can be useful in modules that provide\nobjects with the same name as a built-in value, but in\nwhich the built-in of that name is also needed.”, ‘package’: ‘’, ‘loader’: <class ‘_frozen_importlib.BuiltinImporter’>, ‘spec’: ModuleSpec(name=‘builtins’, loader=<class ‘frozen_importlib.BuiltinImporter’>, origin=‘built-in’), ‘build_class’: , ‘import’: , ‘abs’: , ‘all’: , ‘any’: , ‘ascii’: , ‘bin’: , ‘breakpoint’: , ‘callable’: <built-in f…
os = <module ‘os’ (frozen)>
frappe = <module ‘frappe’ from ‘apps/frappe/frappe/init.py’>
create_custom_fields = <function create_custom_fields at 0x7fa5f6e640e0>
builtins.ImportError: cannot import name '
’ from ‘frappe.desk.page.setup_wizard.install_fixtures’ (apps/frappe/frappe/desk/page/setup_wizard/install_fixtures.py)
frappe@215196f69d39:~/frappe-bench$ bench version

1 Like

same issue without docker on a Ubuntu 22.04 System. Do you fix it?

Regards
Kevin