Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data import stuck at pending #2601

Open
1 task done
ekquashie opened this issue Jan 8, 2025 · 1 comment
Open
1 task done

Data import stuck at pending #2601

ekquashie opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ekquashie
Copy link

Information about bug

I installed erpnext via docker with hrms module as well. I tried importing a list of students and it gets stuck at pending. After refreshing the import button shows again but nothing happens after several attempts to import.

Module

other

Version

Education v15.5.0 (develop)
ERPNExt v15.47.4
Frappe Framework v15.51.1
Frappe HR v16.0.0
Payments v0.0.1

Installation method

docker

Relevant log output / Stack trace / Full Error Message.

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ekquashie ekquashie added the bug Something isn't working label Jan 8, 2025
@ekquashie
Copy link
Author

Error Log just appeared in the error log list> I am able to add students and use the education module

Traceback with variables (most recent call last):
File "apps/frappe/frappe/core/doctype/data_import/data_import.py", line 142, in start_import
i.import_data()
data_import = <DataImport: Student Import on 2025-01-08 06:53:26.311568>
i = <frappe.core.doctype.data_import.importer.Importer object at 0x7ff65900f050>
File "apps/frappe/frappe/core/doctype/data_import/importer.py", line 78, in import_data
payloads = self.import_file.get_payloads_for_import()
self = <frappe.core.doctype.data_import.importer.Importer object at 0x7ff65900f050>
File "apps/frappe/frappe/core/doctype/data_import/importer.py", line 519, in get_payloads_for_import
doc, rows, data = self.parse_next_row_for_import(data)
self = <frappe.core.doctype.data_import.importer.ImportFile object at 0x7ff65901aa10>
payloads = []
data = [<frappe.core.doctype.data_import.importer.Row object at 0x7ff658174110>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff659121050>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff658197e90>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff658197350>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581af390>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581af450>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ae650>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581addd0>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ade10>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ae110>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581af3d0>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ae610>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ae690>, <frappe.core.doctype.data_import.importer.Row obje...
File "apps/frappe/frappe/core/doctype/data_import/importer.py", line 555, in parse_next_row_for_import
parent_doc = row.parse_doc(doctype)
self = <frappe.core.doctype.data_import.importer.ImportFile object at 0x7ff65901aa10>
data = [<frappe.core.doctype.data_import.importer.Row object at 0x7ff658174110>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff659121050>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff658197e90>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff658197350>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581af390>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581af450>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ae650>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581addd0>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ade10>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ae110>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581af3d0>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ae610>, <frappe.core.doctype.data_import.importer.Row object at 0x7ff6581ae690>, <frappe.core.doctype.data_import.importer.Row obje...
doctypes = [('Student', None)]
first_row = <frappe.core.doctype.data_import.importer.Row object at 0x7ff658174110>
rows = [<frappe.core.doctype.data_import.importer.Row object at 0x7ff658174110>]
row = <frappe.core.doctype.data_import.importer.Row object at 0x7ff658174110>
parent_doc = None
doctype = 'Student'
table_df = None
File "apps/frappe/frappe/core/doctype/data_import/importer.py", line 652, in parse_doc
return self._parse_doc(doctype, columns, values, parent_doc, table_df)
self = <frappe.core.doctype.data_import.importer.Row object at 0x7ff658174110>
doctype = 'Student'
parent_doc = None
table_df = None
col_indexes = [0, 1, 2, 3, 4, 5]
values = ['Abigail', '[email protected]', 'Ghanaian', 'Ghana', 'Allotey', 'P']
columns = [<frappe.core.doctype.data_import.importer.Column object at 0x7ff658197010>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff658197050>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff658197d90>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff658197e50>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff65817cbd0>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff659009c10>]
File "apps/frappe/frappe/core/doctype/data_import/importer.py", line 658, in _parse_doc
doc = frappe.new_doc(
self = <frappe.core.doctype.data_import.importer.Row object at 0x7ff658174110>
doctype = 'Student'
columns = [<frappe.core.doctype.data_import.importer.Column object at 0x7ff658197010>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff658197050>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff658197d90>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff658197e50>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff65817cbd0>, <frappe.core.doctype.data_import.importer.Column object at 0x7ff659009c10>]
values = ['Abigail', '[email protected]', 'Ghanaian', 'Ghana', 'Allotey', 'P']
parent_doc = None
table_df = None
doc = {}
File "apps/frappe/frappe/init.py", line 1148, in new_doc
new_doc = get_new_doc(doctype, parent_doc, parentfield, as_dict=as_dict)
doctype = 'Student'
parent_doc = None
parentfield = None
as_dict = True
kwargs = {}
get_new_doc = <function get_new_doc at 0x7ff65b9de0c0>
File "apps/frappe/frappe/model/create_new.py", line 22, in get_new_doc
frappe.local.new_doc_templates[doctype] = make_new_doc(doctype)
doctype = 'Student'
parent_doc = None
parentfield = None
as_dict = True
File "apps/frappe/frappe/model/create_new.py", line 35, in make_new_doc
doc = frappe.get_doc({"doctype": doctype, "__islocal": 1, "owner": frappe.session.user, "docstatus": 0})
doctype = 'Student'
File "apps/frappe/frappe/init.py", line 1291, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
args = ({'doctype': 'Student', '__islocal': 1, 'owner': '[email protected]', 'docstatus': 0},)
kwargs = {}
frappe = <module 'frappe' from 'apps/frappe/frappe/init.py'>
File "apps/frappe/frappe/model/document.py", line 83, in get_doc
controller = get_controller(doctype)
args = ({'doctype': 'Student', '__islocal': 1, 'owner': '[email protected]', 'docstatus': 0},)
kwargs = {'doctype': 'Student', '__islocal': 1, 'owner': '[email protected]', 'docstatus': 0}
doctype = 'Student'
File "apps/frappe/frappe/model/base_document.py", line 71, in get_controller
site_controllers[doctype] = import_controller(doctype)
doctype = 'Student'
site_controllers = {'Data Import': <class 'frappe.core.doctype.data_import.data_import.DataImport'>}
File "apps/frappe/frappe/model/base_document.py", line 96, in import_controller
module = load_doctype_module(doctype, module_name)
doctype = 'Student'
Document = <class 'frappe.model.document.Document'>
NestedSet = <class 'frappe.utils.nestedset.NestedSet'>
module_name = 'Education'
doctype_info = {'name': 'Student', 'creation': datetime.datetime(2015, 9, 7, 13, 0, 55, 938280), 'modified': datetime.datetime(2024, 6, 7, 16, 52, 48, 135292), 'modified_by': 'Administrator', 'owner': 'Administrator', 'docstatus': 0, 'idx': 0, 'search_fields': None, 'issingle': 0, 'is_virtual': 0, 'is_tree': 0, 'istable': 0, 'editable_grid': 0, 'track_changes': 0, 'module': 'Education', 'restrict_to_domain': None, 'app': None, 'autoname': 'naming_series:', 'naming_rule': 'By "Naming Series" field', 'title_field': 'student_name', 'image_field': 'image', 'timeline_field': None, 'sort_field': 'modified', 'sort_order': 'DESC', 'description': None, 'colour': None, 'read_only': 0, 'in_create': 0, 'menu_index': None, 'parent_node': None, 'smallicon': None, 'allow_copy': 0, 'allow_rename': 1, 'allow_import': 1, 'hide_toolbar': 0, 'track_seen': 0, 'max_attachments': 0, 'print_outline': None, 'document_type': 'Document', 'icon': None, 'color': None, 'tag_fields': None, 'subject': None, 'last_update': None, 'e...
module_path = None
class_overrides = {'Address': ['erpnext.accounts.custom.address.ERPNextAddress'], 'Web Form': ['payments.overrides.payment_webform.PaymentWebForm'], 'Employee': ['hrms.overrides.employee_master.EmployeeMaster'], 'Timesheet': ['hrms.overrides.employee_timesheet.EmployeeTimesheet'], 'Payment Entry': ['hrms.overrides.employee_payment_entry.EmployeePaymentEntry'], 'Project': ['hrms.overrides.employee_project.EmployeeProject']}
File "apps/frappe/frappe/modules/utils.py", line 248, in load_doctype_module
app = get_module_app(module)
doctype = 'Student'
module = 'Education'
prefix = ''
suffix = ''
File "apps/frappe/frappe/modules/utils.py", line 273, in get_module_app
frappe.throw(
("Module {} not found").format(module), exc=frappe.DoesNotExistError)
module = 'Education'
app = None
File "apps/frappe/frappe/init.py", line 603, in throw
msgprint(
msg = 'Module Education not found'
exc = <class 'frappe.exceptions.DoesNotExistError'>
title = None
is_minimizable = False
wide = False
as_list = False
primary_action = None
File "apps/frappe/frappe/init.py", line 568, in msgprint
_raise_exception()
msg = 'Module Education not found'
title = None
raise_exception = <class 'frappe.exceptions.DoesNotExistError'>
as_table = False
as_list = False
indicator = 'red'
alert = False
primary_action = None
is_minimizable = False
wide = False
realtime = False
sys = <module 'sys' (built-in)>
_raise_exception = <function msgprint.._raise_exception at 0x7ff653b8ff60>
inspect = <module 'inspect' from '/usr/local/lib/python3.11/inspect.py'>
out = {'message': 'Module Education not found', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '61e3f256e7ab0ac7d278d6b4640fca7232944b3da031faf70ce209f1'}
File "apps/frappe/frappe/init.py", line 519, in _raise_exception
raise exc
exc = DoesNotExistError('Module Education not found')
inspect = <module 'inspect' from '/usr/local/lib/python3.11/inspect.py'>
msg = 'Module Education not found'
out = {'message': 'Module Education not found', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '61e3f256e7ab0ac7d278d6b4640fca7232944b3da031faf70ce209f1'}
raise_exception = <class 'frappe.exceptions.DoesNotExistError'>
frappe.exceptions.DoesNotExistError: Module Education not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant