ERPNext installation - Error

frappe@5a1c7d0370e2:/workspace/development/frappe-bench$ bench --site testing.localhost install-app erpnext

Installing erpnext…
Updating DocTypes for erpnext : [= ] 3%An error occurred while installing erpnext: Module import failed for Dunning, the DocType you’re trying to open might be deleted.
Error: No module named ‘frappe.website.render’
Traceback with variables (most recent call last):
File “apps/frappe/frappe/modules/utils.py”, line 249, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(module_name)
doctype = ‘Dunning’
module = ‘Accounts’
prefix = ‘’
suffix = ‘’
app = ‘erpnext’
key = ********
module_name = ‘erpnext.accounts.doctype.dunning.dunning’
msg = “Module import failed for Dunning, the DocType you’re trying to open might be deleted.
Error: No module named ‘frappe.website.render’”
File “apps/frappe/frappe/init.py”, line 1522, in get_module
return importlib.import_module(modulename)
modulename = ‘erpnext.accounts.doctype.dunning.dunning’
File “/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
name = ‘erpnext.accounts.doctype.dunning.dunning’
package = None
level = 0
File “”, line 1204, in _gcd_import
name = ‘erpnext.accounts.doctype.dunning.dunning’
package = None
level = 0
File “”, line 1176, in find_and_load
name = ‘erpnext.accounts.doctype.dunning.dunning’
import
= <function _gcd_import at 0x7fe8859afd80>
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 346, 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.accounts.doctype.dunning.dunning’
import
= <function _gcd_import at 0x7fe8859afd80>
path = [‘apps/erpnext/erpnext/accounts/doctype/dunning’]
parent = ‘erpnext.accounts.doctype.dunning’
parent_spec = ModuleSpec(name=‘erpnext.accounts.doctype.dunning’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fe86b68fc10>, origin=‘apps/erpnext/erpnext/accounts/doctype/dunning/init.py’, submodule_search_locations=[‘apps/erpnext/erpnext/accounts/doctype/dunning’])
parent_module = <module ‘erpnext.accounts.doctype.dunning’ from ‘apps/erpnext/erpnext/accounts/doctype/dunning/init.py’>
child = ‘dunning’
spec = ModuleSpec(name=‘erpnext.accounts.doctype.dunning.dunning’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fe86b68e7d0>, origin=‘apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py’)
File “”, line 690, in _load_unlocked
spec = ModuleSpec(name=‘erpnext.accounts.doctype.dunning.dunning’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fe86b68e7d0>, origin=‘apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py’)
module = <module ‘erpnext.accounts.doctype.dunning.dunning’ from ‘apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py’>
File “”, line 940, in exec_module
self = <_frozen_importlib_external.SourceFileLoader object at 0x7fe86b68e7d0>
module = <module ‘erpnext.accounts.doctype.dunning.dunning’ from ‘apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py’>
code = <code object at 0x7fe86b6b5fd0, file “apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py”, line 1>
File “”, line 241, in _call_with_frames_removed
f =
args = (<code object at 0x7fe86b6b5fd0, file “apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py”, line 1>, {‘name’: ‘erpnext.accounts.doctype.dunning.dunning’, ‘doc’: None, ‘package’: ‘erpnext.accounts.doctype.dunning’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x7fe86b68e7d0>, ‘spec’: ModuleSpec(name=‘erpnext.accounts.doctype.dunning.dunning’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fe86b68e7d0>, origin=‘apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py’), ‘file’: ‘apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py’, ‘cached’: ‘apps/erpnext/erpnext/accounts/doctype/dunning/pycache/dunning.cpython-311.pyc’, ‘builtins’: {‘name’: ‘builtins’, ‘doc’: "Built-in functions, types, exceptions, and other objects.\n\nThis module provides dire…
kwds = {}
File “apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py”, line 15, in
from erpnext.controllers.accounts_controller import AccountsController
name = ‘erpnext.accounts.doctype.dunning.dunning’
doc = None
package = ‘erpnext.accounts.doctype.dunning’
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7fe86b68e7d0>
spec = ModuleSpec(name=‘erpnext.accounts.doctype.dunning.dunning’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fe86b68e7d0>, origin=‘apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py’)
file = ‘apps/erpnext/erpnext/accounts/doctype/dunning/dunning.py’
cached = ‘apps/erpnext/erpnext/accounts/doctype/dunning/pycache/dunning.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…
json = <module ‘json’ from ‘/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/json/init.py’>
frappe = <module ‘frappe’ from ‘apps/frappe/frappe/init.py’>
cint = <function cint at 0x7fe8847a3380>
flt = <function flt at 0x7fe8847a32e0>
getdate = <function getdate at 0x7fe884793ec0>
string_types = (<class ‘str’>,)
get_accounting_dimensions = <function get_accounting_dimensions at 0x7fe86b5faac0>
make_gl_entries = <function make_gl_entries at 0x7fe86b5fa0c0>
make_reverse_gl_entries = <function make_reverse_gl_entries at 0x7fe86b48ccc0>
File “apps/erpnext/erpnext/controllers/accounts_controller.py”, line 30, in
from erpnext.accounts.doctype.pricing_rule.utils import (
name = ‘erpnext.controllers.accounts_controller’
doc = None
package = ‘erpnext.controllers’
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7fe86b98f590>
spec = ModuleSpec(name=‘erpnext.controllers.accounts_controller’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fe86b98f590>, origin=‘apps/erpnext/erpnext/controllers/accounts_controller.py’)
file = ‘apps/erpnext/erpnext/controllers/accounts_controller.py’
cached = ‘apps/erpnext/erpnext/controllers/pycache/accounts_controller.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…
json = <module ‘json’ from ‘/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/json/init.py’>
frappe = <module ‘frappe’ from ‘apps/frappe/frappe/init.py’>
_ = <function _ at 0x7fe885763f60>
bold = <function bold at 0x7fe883d85f80>
throw = <function throw at 0x7fe884592660>
get_workflow_name = <function get_workflow_name at 0x7fe882af8220>
is_transition_condition_satisfied = <function is_transition_condition_satisfied at 0x7fe882af8540>
Sum = <class ‘pypika.functions.Sum’>
add_days = <function add_days at 0x7fe8847a0400>
add_months = <function add_months at 0x7fe8847a04a0>
cint = <function cint at 0x7fe8847a3380>
flt = <function flt at 0x7fe8847a32e0>
fmt_money = <function fmt_money at 0x7fe8847a3c40>
formatdate = <function format_date at 0x7fe8847a28e0>
get_last_day = <function get_last_day at 0x7fe8847a1ee0>
get_link_to_form = <function get_link_to_form at 0x7fe8847a49a0>
getdate = <function getdate at 0x7fe884793ec0>
nowdate = <function nowdate at 0x7fe8847a0ea0>
today = <function today at 0x7fe8847a0f40>
text_type = <class ‘str’>
erpnext = <module ‘erpnext’ from ‘apps/erpnext/erpnext/init.py’>
get_accounting_dimensions = <function get_accounting_dimensions at 0x7fe86b5faac0>
File “apps/erpnext/erpnext/accounts/doctype/pricing_rule/utils.py”, line 14, in
from erpnext.setup.doctype.item_group.item_group import get_child_item_groups
name = ‘erpnext.accounts.doctype.pricing_rule.utils’
doc = None
package = ‘erpnext.accounts.doctype.pricing_rule’
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7fe86b49ab90>
spec = ModuleSpec(name=‘erpnext.accounts.doctype.pricing_rule.utils’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fe86b49ab90>, origin=‘apps/erpnext/erpnext/accounts/doctype/pricing_rule/utils.py’)
file = ‘apps/erpnext/erpnext/accounts/doctype/pricing_rule/utils.py’
cached = ‘apps/erpnext/erpnext/accounts/doctype/pricing_rule/pycache/utils.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…
copy = <module ‘copy’ from ‘/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/copy.py’>
json = <module ‘json’ from ‘/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/json/init.py’>
frappe = <module ‘frappe’ from ‘apps/frappe/frappe/init.py’>
_ = <function _ at 0x7fe885763f60>
bold = <function bold at 0x7fe883d85f80>
cint = <function cint at 0x7fe8847a3380>
flt = <function flt at 0x7fe8847a32e0>
fmt_money = <function fmt_money at 0x7fe8847a3c40>
get_link_to_form = <function get_link_to_form at 0x7fe8847a49a0>
getdate = <function getdate at 0x7fe884793ec0>
today = <function today at 0x7fe8847a0f40>
File “apps/erpnext/erpnext/setup/doctype/item_group/item_group.py”, line 11, in
from frappe.website.render import clear_cache
name = ‘erpnext.setup.doctype.item_group.item_group’
doc = None
package = ‘erpnext.setup.doctype.item_group’
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7fe86b4ad850>
spec = ModuleSpec(name=‘erpnext.setup.doctype.item_group.item_group’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fe86b4ad850>, origin=‘apps/erpnext/erpnext/setup/doctype/item_group/item_group.py’)
file = ‘apps/erpnext/erpnext/setup/doctype/item_group/item_group.py’
cached = ‘apps/erpnext/erpnext/setup/doctype/item_group/pycache/item_group.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…
copy = <module ‘copy’ from ‘/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/copy.py’>
frappe = <module ‘frappe’ from ‘apps/frappe/frappe/init.py’>
_ = <function _ at 0x7fe885763f60>
cint = <function cint at 0x7fe8847a3380>
NestedSet = <class ‘frappe.utils.nestedset.NestedSet’>
builtins.ModuleNotFoundError: No module named ‘frappe.website.render’