when installing erpnext in my selfhosted frappe cloud i am facing the below error:
Full Error:
Installing erpnext…
An error occurred while installing erpnext: cannot import name ‘get_setup_wizard_completed_apps’ from ‘frappe.core.doctype.installed_applications.installed_applications’ (/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/installed_applications/installed_applications.py)
Traceback with variables (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 484, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = {‘sites’: [‘hms-test.tbo365.cloud’], ‘force’: False, ‘verbose’: False, ‘profile’: False}
apps = (‘erpnext’,)
force = True
_install_app = <function install_app at 0x7f3c491a4860>
filelock = <function filelock at 0x7f3c49195f80>
exit_code = 0
site = ‘hms-test.tbo365.cloud’
app = ‘erpnext’
err = ImportError(“cannot import name ‘get_setup_wizard_completed_apps’ from ‘frappe.core.doctype.installed_applications.installed_applications’ (apps/frappe/frappe/core/doctype/installed_applications/installed_applications.py)”)
File “apps/frappe/frappe/installer.py”, line 316, in install_app
sync_for(name, force=force, reset_permissions=True)
name = ‘erpnext’
verbose = False
set_as_patched = True
force = True
sync_jobs = <function sync_jobs at 0x7f3c483dcea0>
sync_for = <function sync_for at 0x7f3c483dde40>
sync_customizations = <function sync_customizations at 0x7f3c49f58400>
sync_fixtures = <function sync_fixtures at 0x7f3c483de160>
app_hooks = {‘accounting_dimension_doctypes’: [‘GL Entry’, ‘Payment Ledger Entry’, ‘Sales Invoice’, ‘Purchase Invoice’, ‘Payment Entry’, ‘Asset’, ‘Stock Entry’, ‘Budget’, ‘Delivery Note’, ‘Sales Invoice Item’, ‘Purchase Invoice Item’, ‘Purchase Order Item’, ‘Sales Order Item’, ‘Journal Entry Account’, ‘Material Request Item’, ‘Delivery Note Item’, ‘Purchase Receipt Item’, ‘Stock Entry Detail’, ‘Payment Entry Deduction’, ‘Sales Taxes and Charges’, ‘Purchase Taxes and Charges’, ‘Shipping Rule’, ‘Landed Cost Item’, ‘Asset Value Adjustment’, ‘Asset Repair’, ‘Asset Capitalization’, ‘Loyalty Program’, ‘Stock Reconciliation’, ‘POS Profile’, ‘Opening Invoice Creation Tool’, ‘Opening Invoice Creation Tool Item’, ‘Subscription’, ‘Subscription Plan’, ‘POS Invoice’, ‘POS Invoice Item’, ‘Purchase Order’, ‘Purchase Receipt’, ‘Sales Order’, ‘Subcontracting Order’, ‘Subcontracting Order Item’, ‘Subcontracting Receipt’, ‘Subcontracting Receipt Item’, ‘Account Closing Balance’, ‘Supplier Quotation’, 'Supplier Quota…
installed_apps = [‘frappe’, ‘hms’]
before_install = ‘erpnext.setup.install.check_frappe_version’
out = None
File “apps/frappe/frappe/model/sync.py”, line 104, in sync_for
folder = os.path.dirname(frappe.get_module(app_name + “.” + module_name).file)
app_name = ‘erpnext’
force = True
reset_permissions = True
files = [‘apps/erpnext/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.json’, ‘apps/erpnext/erpnext/accounts/doctype/pos_closing_entry_detail/pos_closing_entry_detail.json’, ‘apps/erpnext/erpnext/accounts/doctype/pos_search_fields/pos_search_fields.json’, ‘apps/erpnext/erpnext/accounts/doctype/shipping_rule_condition/shipping_rule_condition.json’, ‘apps/erpnext/erpnext/accounts/doctype/bisect_nodes/bisect_nodes.json’, ‘apps/erpnext/erpnext/accounts/doctype/exchange_rate_revaluation_account/exchange_rate_revaluation_account.json’, ‘apps/erpnext/erpnext/accounts/doctype/party_account/party_account.json’, ‘apps/erpnext/erpnext/accounts/doctype/bank_clearance_detail/bank_clearance_detail.json’, 'apps/erpnext/erpnext/accounts/doctype/payment_reconciliation…
module_name = ‘utilities’
folder = ‘apps/erpnext/erpnext/support’
File “apps/frappe/frappe/init.py”, line 1442, in get_module
return importlib.import_module(modulename)
modulename = ‘erpnext.utilities’
File “/usr/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
name = ‘erpnext.utilities’
package = None
level = 0
File “”, line 1204, in _gcd_import
name = ‘erpnext.utilities’
package = None
level = 0
File “”, line 1176, in find_and_load
name = ‘erpnext.utilities’
import = <function _gcd_import at 0x7f3c4c143d80>
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 = ‘erpnext.utilities’
import = <function _gcd_import at 0x7f3c4c143d80>
path = [‘apps/erpnext/erpnext’]
parent = ‘erpnext’
parent_spec = ModuleSpec(name=‘erpnext’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3c4aaeab90>, origin=‘apps/erpnext/erpnext/init.py’, submodule_search_locations=[‘apps/erpnext/erpnext’])
parent_module = <module ‘erpnext’ from ‘apps/erpnext/erpnext/init.py’>
child = ‘utilities’
spec = ModuleSpec(name=‘erpnext.utilities’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3c47492090>, origin=‘apps/erpnext/erpnext/utilities/init.py’, submodule_search_locations=[‘apps/erpnext/erpnext/utilities’])
File “”, line 690, in _load_unlocked
spec = ModuleSpec(name=‘erpnext.utilities’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3c47492090>, origin=‘apps/erpnext/erpnext/utilities/init.py’, submodule_search_locations=[‘apps/erpnext/erpnext/utilities’])
module = <module ‘erpnext.utilities’ from ‘apps/erpnext/erpnext/utilities/init.py’>
File “”, line 940, in exec_module
self = <_frozen_importlib_external.SourceFileLoader object at 0x7f3c47492090>
module = <module ‘erpnext.utilities’ from ‘apps/erpnext/erpnext/utilities/init.py’>
code = <code object at 0x7f3c475cb3f0, file “apps/erpnext/erpnext/utilities/init.py”, line 1>
File “”, line 241, in _call_with_frames_removed
f =
args = (<code object at 0x7f3c475cb3f0, file “apps/erpnext/erpnext/utilities/init.py”, line 1>, {‘name’: ‘erpnext.utilities’, ‘doc’: None, ‘package’: ‘erpnext.utilities’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x7f3c47492090>, ‘spec’: ModuleSpec(name=‘erpnext.utilities’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3c47492090>, origin=‘apps/erpnext/erpnext/utilities/init.py’, submodule_search_locations=[‘apps/erpnext/erpnext/utilities’]), ‘path’: [‘apps/erpnext/erpnext/utilities’], ‘file’: ‘apps/erpnext/erpnext/utilities/init.py’, ‘cached’: ‘apps/erpnext/erpnext/utilities/pycache/init.cpython-311.pyc’, ‘builtins’: {‘name’: ‘builtins’, ‘doc’: "Built-in functions, types, exceptions, and other objects.\n\nThis module provide…
kwds = {}
File “apps/erpnext/erpnext/utilities/init.py”, line 9, in
from erpnext.utilities.activation import get_level
name = ‘erpnext.utilities’
doc = None
package = ‘erpnext.utilities’
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7f3c47492090>
spec = ModuleSpec(name=‘erpnext.utilities’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3c47492090>, origin=‘apps/erpnext/erpnext/utilities/init.py’, submodule_search_locations=[‘apps/erpnext/erpnext/utilities’])
path = [‘apps/erpnext/erpnext/utilities’]
file = ‘apps/erpnext/erpnext/utilities/init.py’
cached = ‘apps/erpnext/erpnext/utilities/pycache/init.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…
contextmanager = <function contextmanager at 0x7f3c4bfa5b20>
frappe = <module ‘frappe’ from ‘apps/frappe/frappe/init.py’>
_ = <function _ at 0x7f3c4bfa4900>
cstr = <function cstr at 0x7f3c4b2a0180>
File “apps/erpnext/erpnext/utilities/activation.py”, line 7, in
from frappe.core.doctype.installed_applications.installed_applications import get_setup_wizard_completed_apps
name = ‘erpnext.utilities.activation’
doc = None
package = ‘erpnext.utilities’
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7f3c474d6dd0>
spec = ModuleSpec(name=‘erpnext.utilities.activation’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f3c474d6dd0>, origin=‘apps/erpnext/erpnext/utilities/activation.py’)
file = ‘apps/erpnext/erpnext/utilities/activation.py’
cached = ‘apps/erpnext/erpnext/utilities/pycache/activation.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…
frappe = <module ‘frappe’ from ‘apps/frappe/frappe/init.py’>
_ = <function _ at 0x7f3c4bfa4900>
builtins.ImportError: cannot import name ‘get_setup_wizard_completed_apps’ from ‘frappe.core.doctype.installed_applications.installed_applications’ (apps/frappe/frappe/core/doctype/installed_applications/installed_applications.py)
The same issue is not coming in frappe cloud …Please help prod servers are at stake…