I had an old image with ERPNext and other applications that I was in the process of updating. I’m now trying to deploy a new project using the easy-install.py script, but I’m getting this error : File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 258, in load_doctype_module
raise ImportError(msg) from e
ImportError: Module import failed for POS Closing Entry, the DocType you’re trying to open might be deleted.
Error: No module named ‘frappe.deprecation_dumpster’
I have created a new brand image with many applications erpnext , payment crm and others . I’m tring to deploy with with the esay install script .
the deplyment creashes as follow.
Installing frappe…
Updating DocTypes for frappe : [========================================] 100%
Updating Dashboard for frappe
Installing erpnext…
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 254, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1434, in get_module
return importlib.import_module(modulename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.py”, line 9, in
from erpnext.accounts.doctype.pos_invoice_merge_log.pos_invoice_merge_log import (
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/pos_invoice_merge_log/pos_invoice_merge_log.py”, line 18, in
from erpnext.controllers.taxes_and_totals import ItemWiseTaxDetail
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/taxes_and_totals.py”, line 13, in
from erpnext.accounts.doctype.journal_entry.journal_entry import get_exchange_rate
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py”, line 12, in
from erpnext.accounts.deferred_revenue import get_deferred_booking_accounts
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/deferred_revenue.py”, line 21, in
from erpnext.accounts.utils import get_account_currency
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/utils.py”, line 37, in
from erpnext.stock.utils import get_stock_value_on
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/utils.py”, line 13, in
from erpnext.stock.doctype.serial_and_batch_bundle.serial_and_batch_bundle import (
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py”, line 26, in
from erpnext.stock.serial_batch_bundle import (
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/serial_batch_bundle.py”, line 11, in
from erpnext.stock.deprecated_serial_batch import (
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/deprecated_serial_batch.py”, line 9, in
from erpnext.deprecation_dumpster import deprecated
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/deprecation_dumpster.py”, line 23, in
from frappe.deprecation_dumpster import Color, _deprecated, colorize
ModuleNotFoundError: No module named ‘frappe.deprecation_dumpster’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1161, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 105, in new_site
_new_site(
File “/home/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 117, in _new_site
install_app(app, verbose=verbose, set_as_patched=not source_sql, force=False)
File “/home/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 316, in install_app
sync_for(name, force=force, reset_permissions=True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/sync.py”, line 111, in sync_for
import_file_by_path(
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 146, in import_file_by_path
import_doc(
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 239, in import_doc
doc.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 320, in insert
self.run_post_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1140, in run_post_save_methods
self.run_method(“on_update”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 974, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1334, in composer
return composed(self, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1316, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 971, in fn
return method_object(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 531, in on_update
self.run_module_method(“on_doctype_update”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 629, in run_module_method
module = load_doctype_module(self.name, self.module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 258, in load_doctype_module
raise ImportError(msg) from e
ImportError: Module import failed for POS Closing Entry, the DocType you’re trying to open might be deleted.
Error: No module named ‘frappe.deprecation_dumpster’