Installing lending…
An error occurred while installing lending: Module import failed for Loan Product Loan Partner, the DocType you’re trying to open might be deleted.
Error: No module named ‘loan_management.loan_management.doctype.loan_product_loan_partner’
Traceback with variables (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 478, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = {‘sites’: [‘loan’], ‘force’: False, ‘verbose’: False, ‘profile’: False}
apps = (‘lending’,)
force = False
_install_app = <function install_app at 0x7f11c569b400>
filelock = <function filelock at 0x7f11c56993f0>
exit_code = 0
site = ‘loan’
app = ‘lending’
err = ImportError(“Module import failed for Loan Product Loan Partner, the DocType you’re trying to open might be deleted.\nError: No module named ‘loan_management.loan_management.doctype.loan_product_loan_partner’”)
File “apps/frappe/frappe/installer.py”, line 316, in install_app
sync_for(name, force=force, reset_permissions=True)
name = ‘lending’
verbose = False
set_as_patched = True
force = False
sync_jobs = <function sync_jobs at 0x7f11c4bbfd90>
sync_for = <function sync_for at 0x7f11c4bd88b0>
sync_customizations = <function sync_customizations at 0x7f11c6506950>
sync_fixtures = <function sync_fixtures at 0x7f11c4bd8c10>
app_hooks = {‘after_install’: [‘lending.install.after_install’], ‘app_description’: [‘Open Source Lending software’], ‘app_email’: [‘contact@frappe.io’], ‘app_include_js’: [‘lending.bundle.js’], ‘app_license’: [‘GNU General Public License (v3)’], ‘app_name’: [‘lending’], ‘app_publisher’: [‘Frappe Technologies Pvt. Ltd.’], ‘app_title’: [‘Frappe Lending’], ‘audit_trail_doctypes’: [‘Loan Balance Adjustment’, ‘Loan Disbursement’, ‘Loan Interest Accrual’, ‘Loan Refund’, ‘Loan Repayment’, ‘Loan Write Off’], ‘bank_reconciliation_doctypes’: [‘Loan Repayment’, ‘Loan Disbursement’], ‘before_tests’: [‘lending.utils.before_tests’], ‘before_uninstall’: [‘lending.uninstall.before_uninstall’], ‘doc_events’: {‘Company’: {‘validate’: [‘lending.overrides.company.validate_loan_tables’]}}, ‘get_amounts_not_reflected_in_system_for_bank_reconciliation_statement’: [‘lending.loan_management.utils.get_amounts_not_reflected_in_system_for_bank_reconciliation_statement’], ‘get_entries_for_bank_clearance_summary’: ['lending.l…
installed_apps = [‘frappe’, ‘erpnext’]
app = ‘erpnext’
required_app = ‘erpnext’
File “apps/frappe/frappe/model/sync.py”, line 111, in sync_for
import_file_by_path(
app_name = ‘lending’
force = False
reset_permissions = True
files = [‘apps/lending/lending/loan_management/doctype/loan_product_loan_partner/loan_product_loan_partner.json’, ‘apps/lending/lending/loan_management/doctype/loan_application/loan_application.json’, ‘apps/lending/lending/loan_management/doctype/process_loan_security_shortfall/process_loan_security_shortfall.json’, ‘apps/lending/lending/loan_management/doctype/loan_category/loan_category.json’, ‘apps/lending/lending/loan_management/doctype/days_past_due_log/days_past_due_log.json’, ‘apps/lending/lending/loan_management/doctype/process_loan_classification/process_loan_classification.json’, ‘apps/lending/lending/loan_management/doctype/loan_security/loan_security.json’, ‘…
module_name = ‘loan_management’
folder = ‘apps/lending/lending/loan_management’
l = 51
i = 0
doc_path = ‘apps/lending/lending/loan_management/doctype/loan_product_loan_partner/loan_product_loan_partner.json’
File “apps/frappe/frappe/modules/import_file.py”, line 146, in import_file_by_path
import_doc(
path = ‘apps/lending/lending/loan_management/doctype/loan_product_loan_partner/loan_product_loan_partner.json’
force = False
data_import = False
pre_process = None
ignore_version = True
reset_permissions = True
docs = [{‘actions’: , ‘allow_rename’: 1, ‘creation’: ‘2023-10-03 00:33:27.497599’, ‘doctype’: ‘DocType’, ‘editable_grid’: 1, ‘engine’: ‘InnoDB’, ‘fields’: [{‘fieldname’: ‘loan_partner’, ‘fieldtype’: ‘Link’, ‘in_list_view’: 1, ‘label’: ‘Loan Partner’, ‘options’: ‘Loan Partner’, ‘reqd’: 1, ‘doctype’: ‘DocField’}], ‘index_web_pages_for_search’: 1, ‘istable’: 1, ‘links’: , ‘modified’: ‘2023-10-03 00:33:27.497599’, ‘modified_by’: ‘Administrator’, ‘module’: ‘Loan Management’, ‘name’: ‘Loan Product Loan Partner’, ‘owner’: ‘Administrator’, ‘permissions’: , ‘sort_field’: ‘modified’, ‘sort_order’: ‘DESC’, ‘states’: , ‘__islocal’: 1}]
calculated_hash = ‘635aab17a5952ab9b35ac80e452c639b’
doc = {‘actions’: , ‘allow_rename’: 1, ‘creation’: ‘2023-10-03 00:33:27.497599’, ‘doctype’: ‘DocType’, ‘editable_grid’: 1, ‘engine’: ‘InnoDB’, ‘fields’: [{‘fieldname’: ‘loan_partner’, ‘fieldtype’: ‘Link’, ‘in_list_view’: 1, ‘label’: ‘Loan Partner’, ‘options’: ‘Loan Partner’, ‘reqd’: 1, ‘doctype’: ‘DocField’}], ‘index_web_pages_for_search’: 1, ‘istable’: 1, ‘links’: , ‘modified’: ‘2023-10-03 00:33:27.497599’, ‘modified_by’: ‘Administrator’, ‘module’: ‘Loan Management’, ‘name’: ‘Loan Product Loan Partner’, ‘owner’: ‘Administrator’, ‘permissions’: , ‘sort_field’: ‘modified’, ‘sort_order’: ‘DESC’, ‘states’: , ‘__islocal’: 1}
db_modified_timestamp = datetime.datetime(2024, 11, 14, 15, 6, 20, 176205)
is_db_timestamp_latest = True
stored_hash = None
File “apps/frappe/frappe/modules/import_file.py”, line 239, in import_doc
doc.insert()
docdict = {‘actions’: , ‘allow_rename’: 1, ‘creation’: ‘2023-10-03 00:33:27.497599’, ‘doctype’: ‘DocType’, ‘editable_grid’: 1, ‘engine’: ‘InnoDB’, ‘fields’: [{‘fieldname’: ‘loan_partner’, ‘fieldtype’: ‘Link’, ‘in_list_view’: 1, ‘label’: ‘Loan Partner’, ‘options’: ‘Loan Partner’, ‘reqd’: 1, ‘doctype’: ‘DocField’}], ‘index_web_pages_for_search’: 1, ‘istable’: 1, ‘links’: , ‘modified’: ‘2023-10-03 00:33:27.497599’, ‘modified_by’: ‘Administrator’, ‘module’: ‘Loan Management’, ‘name’: ‘Loan Product Loan Partner’, ‘owner’: ‘Administrator’, ‘permissions’: , ‘sort_field’: ‘modified’, ‘sort_order’: ‘DESC’, ‘states’: , ‘__islocal’: 1}
data_import = False
pre_process = None
ignore_version = True
reset_permissions = True
path = ‘apps/lending/lending/loan_management/doctype/loan_product_loan_partner/loan_product_loan_partner.json’
controller = <class ‘frappe.core.doctype.doctype.doctype.DocType’>
doc = <DocType: Loan Product Loan Partner>
File “apps/frappe/frappe/model/document.py”, line 315, in insert
self.run_post_save_methods()
self = <DocType: Loan Product Loan Partner>
ignore_permissions = None
ignore_links = None
ignore_if_duplicate = False
ignore_mandatory = None
set_name = None
set_child_names = True
d = <LinkDocField: loan_partner parent=Loan Product Loan Partner>
File “apps/frappe/frappe/model/document.py”, line 1128, in run_post_save_methods
self.run_method(“on_update”)
self = <DocType: Loan Product Loan Partner>
File “apps/frappe/frappe/model/document.py”, line 962, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
self = <DocType: Loan Product Loan Partner>
args = ()
kwargs = {}
fn = <function Document.run_method..fn at 0x7f11c34bb910>
method = ‘on_update’
File “apps/frappe/frappe/model/document.py”, line 1322, in composer
return composed(self, method, args, **kwargs)
self = <DocType: Loan Product Loan Partner>
args = ()
kwargs = {}
hooks = [<function build_domain_restriced_doctype_cache at 0x7f11c5faab00>, <function clear_doctype_notifications at 0x7f11c35f2830>, <function process_workflow_actions at 0x7f11c34065f0>, <function attach_files_to_document at 0x7f11c697ac20>, <function apply at 0x7f11c34292d0>, <function update_due_date at 0x7f11c3429360>, <function apply_permissions_for_non_standard_user_type at 0x7f11c342ab90>]
method = ‘on_update’
doc_events = {'’: {‘on_update’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’, ‘frappe.core.doctype.file.utils.attach_files_to_document’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.apply’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.update_due_date’, ‘frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type’], ‘after_rename’: [‘frappe.desk.notifications.clear_doctype_notifications’], ‘on_cancel’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.apply’], ‘on_trash’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’], ‘on_update_after_submit’: ['frappe.workflow.doctype.workflow_action.workflow_action.process_w…
handler = ‘frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type’
composed = <function Document.hook..compose..runner at 0x7f11c34bbeb0>
compose = <function Document.hook..compose at 0x7f11c34bb6d0>
f = <function Document.run_method..fn at 0x7f11c34bb910>
File “apps/frappe/frappe/model/document.py”, line 1304, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
self = <DocType: Loan Product Loan Partner>
method = ‘on_update’
args = ()
kwargs = {}
add_to_return_value = <function Document.hook..add_to_return_value at 0x7f11c34bbe20>
fn = <function Document.run_method..fn at 0x7f11c34bb910>
hooks = (<function build_domain_restriced_doctype_cache at 0x7f11c5faab00>, <function clear_doctype_notifications at 0x7f11c35f2830>, <function process_workflow_actions at 0x7f11c34065f0>, <function attach_files_to_document at 0x7f11c697ac20>, <function apply at 0x7f11c34292d0>, <function update_due_date at 0x7f11c3429360>, <function apply_permissions_for_non_standard_user_type at 0x7f11c342ab90>)
File “apps/frappe/frappe/model/document.py”, line 959, in fn
return method_object(*args, **kwargs)
self = <DocType: Loan Product Loan Partner>
args = ()
kwargs = {}
method_object = <bound method DocType.on_update of <DocType: Loan Product Loan Partner>>
method = ‘on_update’
File “apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 531, in on_update
self.run_module_method(“on_doctype_update”)
self = <DocType: Loan Product Loan Partner>
allow_doctype_export = False
File “apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 629, in run_module_method
module = load_doctype_module(self.name, self.module)
self = <DocType: Loan Product Loan Partner>
method = ‘on_doctype_update’
load_doctype_module = <function load_doctype_module at 0x7f11c6506ef0>
File “apps/frappe/frappe/modules/utils.py”, line 258, in load_doctype_module
raise ImportError(msg) from e
doctype = ‘Loan Product Loan Partner’
module = ‘Loan Management’
prefix = ‘’
suffix = ‘’
app = ‘loan_management’
key = ********
module_name = ‘loan_management.loan_management.doctype.loan_product_loan_partner.loan_product_loan_partner’
msg = “Module import failed for Loan Product Loan Partner, the DocType you’re trying to open might be deleted.\nError: No module named ‘loan_management.loan_management.doctype.loan_product_loan_partner’”
builtins.ImportError: Module import failed for Loan Product Loan Partner, the DocType you’re trying to open might be deleted.
Error: No module named ‘loan_management.loan_management.doctype.loan_product_loan_partner’