ImportError: Module import failed for Products Settings when updating site (from v13.6 to latest version)

Hello. I tried to update the app but get ImportError: Module import failed for Products Settings instead even though I do not touch any Product Setting doc.

command used: bench update --reset

Here is the error:
Traceback (most recent call last):
File “/workspace/development/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 205, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(module_name)
File “/workspace/development/frappe-bench/apps/frappe/frappe/init.py”, line 975, in get_module
return importlib.import_module(modulename)
File “/workspace/development/frappe-bench/env/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘erpnext.portal.doctype.products_settings.products_settings’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.7/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.7/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 104, in
main()
File “/workspace/development/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 19, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/workspace/development/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/workspace/development/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/workspace/development/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/workspace/development/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/workspace/development/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/workspace/development/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/workspace/development/frappe-bench/env/lib/python3.7/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/workspace/development/frappe-bench/apps/frappe/frappe/commands/init.py”, line 27, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/workspace/development/frappe-bench/apps/frappe/frappe/commands/site.py”, line 309, in migrate
skip_search_index=skip_search_index
File “/workspace/development/frappe-bench/apps/frappe/frappe/migrate.py”, line 75, in migrate
sync_fixtures()
File “/workspace/development/frappe-bench/apps/frappe/frappe/utils/fixtures.py”, line 24, in sync_fixtures
import_doc(frappe.get_app_path(app, “fixtures”, fname))
File “/workspace/development/frappe-bench/apps/frappe/frappe/core/doctype/data_import/data_import.py”, line 191, in import_doc
reset_permissions=True
File “/workspace/development/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 137, in import_file_by_path
path=path,
File “/workspace/development/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 257, in import_doc
doc.insert()
File “/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py”, line 268, in insert
self.run_post_save_methods()
File “/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py”, line 1002, in run_post_save_methods
self.run_method(“on_update”)
File “/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py”, line 866, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py”, line 1159, in composer
return composed(self, method, *args, **kwargs)
File “/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py”, line 1142, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/workspace/development/frappe-bench/apps/frappe/frappe/model/document.py”, line 860, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/workspace/development/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 326, in on_update
self.run_module_method(“on_doctype_update”)
File “/workspace/development/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 380, in run_module_method
module = load_doctype_module(self.name, self.module)
File “/workspace/development/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 207, in load_doctype_module
raise ImportError(‘Module import failed for {0} ({1})’.format(doctype, module_name + ’ Error: ’ + str(e)))
ImportError: Module import failed for Products Settings (erpnext.portal.doctype.products_settings.products_settings Error: No module named ‘erpnext.portal.doctype.products_settings.products_settings’)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.