There is error in importing customers data as follow
Customer Import on 2022-08-22 08:51:09.343812
Traceback (most recent call last):
File “/bench/bench01/apps/frappe/frappe/core/doctype/data_import/data_import.py”, line 101, in start_import
i = Importer(data_import.reference_doctype, data_import=data_import)
File “/bench/bench01/apps/frappe/frappe/core/doctype/data_import/importer.py”, line 44, in init
self.import_file = ImportFile(
File “/bench/bench01/apps/frappe/frappe/core/doctype/data_import/importer.py”, line 328, in init
self.parse_data_from_template()
File “/bench/bench01/apps/frappe/frappe/core/doctype/data_import/importer.py”, line 366, in parse_data_from_template
header = Header(i, row, self.doctype, self.raw_data, self.column_to_field_map)
File “/bench/bench01/apps/frappe/frappe/core/doctype/data_import/importer.py”, line 727, in init
column = Column(j, header, self.doctype, column_values, map_to_field, self.seen)
File “/bench/bench01/apps/frappe/frappe/core/doctype/data_import/importer.py”, line 780, in init
self.validate_values()
File “/bench/bench01/apps/frappe/frappe/core/doctype/data_import/importer.py”, line 904, in validate_values
exists = [d.name for d in frappe.db.get_all(self.df.options, filters={“name”: (“in”, values)})]
File “/bench/bench01/apps/frappe/frappe/database/database.py”, line 633, in get_all
return frappe.get_all(*args, **kwargs)
File “/bench/bench01/apps/frappe/frappe/init.py”, line 1741, in get_all
return get_list(doctype, *args, **kwargs)
File “/bench/bench01/apps/frappe/frappe/init.py”, line 1713, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 170, in execute
result = self.build_and_run()
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 187, in build_and_run
args = self.prepare_args()
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 223, in prepare_args
self.build_conditions()
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 467, in build_conditions
self.build_filter_conditions(self.filters, self.conditions)
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 488, in build_filter_conditions
conditions.append(self.prepare_filter_condition(f))
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 495, in prepare_filter_condition
from frappe.boot import get_additional_filters_from_hooks
File “/bench/bench01/apps/frappe/frappe/boot.py”, line 17, in
from frappe.email.inbox import get_email_accounts
File “/bench/bench01/apps/frappe/frappe/email/init.py”, line 69, in
def get_communication_doctype(doctype, txt, searchfield, start, page_len, filters):
File “/bench/bench01/apps/frappe/frappe/init.py”, line 2209, in validate_and_sanitize_search_inputs
from frappe.desk.search import validate_and_sanitize_search_inputs as func
File “/bench/bench01/apps/frappe/frappe/desk/search.py”, line 16, in
from frappe.translate import get_translated_doctypes
ImportError: cannot import name ‘get_translated_doctypes’ from ‘frappe.translate’ (/bench/bench01/apps/frappe/frappe/translate.py)During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/bench/bench01/apps/frappe/frappe/utils/background_jobs.py”, line 134, in execute_job
method(**kwargs)
File “/bench/bench01/apps/frappe/frappe/core/doctype/data_import/data_import.py”, line 105, in start_import
data_import.db_set(“status”, “Error”)
File “/bench/bench01/apps/frappe/frappe/model/document.py”, line 1170, in db_set
self.run_method(“before_change”)
File “/bench/bench01/apps/frappe/frappe/model/document.py”, line 943, in run_method
self.run_notifications(method)
File “/bench/bench01/apps/frappe/frappe/model/document.py”, line 964, in run_notifications
from frappe.email.doctype.notification.notification import evaluate_alert
File “/bench/bench01/apps/frappe/frappe/email/init.py”, line 69, in
def get_communication_doctype(doctype, txt, searchfield, start, page_len, filters):
File “/bench/bench01/apps/frappe/frappe/init.py”, line 2209, in validate_and_sanitize_search_inputs
from frappe.desk.search import validate_and_sanitize_search_inputs as func
File “/bench/bench01/apps/frappe/frappe/desk/search.py”, line 16, in
from frappe.translate import get_translated_doctypes
ImportError: cannot import name ‘get_translated_doctypes’ from ‘frappe.translate’ (/bench/bench01/apps/frappe/frappe/translate.py)During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/bench/bench01/env/lib/python3.8/site-packages/rq/worker.py”, line 1013, in perform_job
rv = job.perform()
File “/bench/bench01/env/lib/python3.8/site-packages/rq/job.py”, line 709, in perform
self._result = self._execute()
File “/bench/bench01/env/lib/python3.8/site-packages/rq/job.py”, line 732, in _execute
result = self.func(*self.args, **self.kwargs)
File “/bench/bench01/apps/frappe/frappe/utils/background_jobs.py”, line 158, in execute_job
frappe.log_error(title=method_name)
File “/bench/bench01/apps/frappe/frappe/init.py”, line 2041, in log_error
return get_doc(dict(doctype=“Error Log”, error=as_unicode(error), method=title)).insert(
File “/bench/bench01/apps/frappe/frappe/init.py”, line 1074, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “/bench/bench01/apps/frappe/frappe/model/document.py”, line 79, in get_doc
return controller(*args, **kwargs)
File “/bench/bench01/apps/frappe/frappe/model/document.py”, line 128, in init
self.init_valid_columns()
File “/bench/bench01/apps/frappe/frappe/model/base_document.py”, line 311, in init_valid_columns
for key in self.get_valid_columns():
File “/bench/bench01/apps/frappe/frappe/model/base_document.py”, line 322, in get_valid_columns
valid = self.meta.get_valid_columns()
File “/bench/bench01/apps/frappe/frappe/model/base_document.py”, line 103, in meta
self._meta = frappe.get_meta(self.doctype)
File “/bench/bench01/apps/frappe/frappe/init.py”, line 1106, in get_meta
return frappe.model.meta.get_meta(doctype, cached=cached)
File “/bench/bench01/apps/frappe/frappe/model/meta.py”, line 49, in get_meta
meta = Meta(doctype)
File “/bench/bench01/apps/frappe/frappe/model/meta.py”, line 107, in init
self.process()
File “/bench/bench01/apps/frappe/frappe/model/meta.py”, line 128, in process
self.set_custom_permissions()
File “/bench/bench01/apps/frappe/frappe/model/meta.py”, line 457, in set_custom_permissions
custom_perms = frappe.get_all(
File “/bench/bench01/apps/frappe/frappe/init.py”, line 1741, in get_all
return get_list(doctype, *args, **kwargs)
File “/bench/bench01/apps/frappe/frappe/init.py”, line 1713, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 170, in execute
result = self.build_and_run()
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 187, in build_and_run
args = self.prepare_args()
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 223, in prepare_args
self.build_conditions()
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 467, in build_conditions
self.build_filter_conditions(self.filters, self.conditions)
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 488, in build_filter_conditions
conditions.append(self.prepare_filter_condition(f))
File “/bench/bench01/apps/frappe/frappe/model/db_query.py”, line 495, in prepare_filter_condition
from frappe.boot import get_additional_filters_from_hooks
File “/bench/bench01/apps/frappe/frappe/boot.py”, line 17, in
from frappe.email.inbox import get_email_accounts
File “/bench/bench01/apps/frappe/frappe/email/init.py”, line 69, in
def get_communication_doctype(doctype, txt, searchfield, start, page_len, filters):
File “/bench/bench01/apps/frappe/frappe/init.py”, line 2209, in validate_and_sanitize_search_inputs
from frappe.desk.search import validate_and_sanitize_search_inputs as func
File “/bench/bench01/apps/frappe/frappe/desk/search.py”, line 16, in
from frappe.translate import get_translated_doctypes
ImportError: cannot import name ‘get_translated_doctypes’ from ‘frappe.translate’ (/bench/bench01/apps/frappe/frappe/translate.py)