I am currently on 8.0.16 for erpnext and 8.0.32 for frappe in my dev and prod environments. I am getting this error when updating to latest 8.0.29/8.0.47
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
main()
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/erpnext/erpnext-dev/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/home/erpnext/erpnext-dev/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/erpnext/erpnext-dev/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpnext/erpnext-dev/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpnext/erpnext-dev/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/erpnext/erpnext-dev/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/erpnext/erpnext-dev/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/commands/__init__.py", line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/commands/site.py", line 214 , in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/migrate.py", line 31, in migrate
frappe.modules.patch_handler.run_all()
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/modules/patch_handler.py", line 29, in run_all
if not run_single(patchmodule = patch):
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/modules/patch_handler.py", line 63, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/modules/patch_handler.py", line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/patches/v8_0/update_records _in_global_search.py", line 11, in execute
rebuild_for_doctype(doctype)
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/utils/global_search.py", line 107, in rebuild_for_doctype
if hasattr(get_controller(doctype), "is_website_published") and meta.allow_guest_to_view:
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/model/base_document.py", line 35, in get_controller
module = load_doctype_module(doctype, module_name)
File "/home/erpnext/erpnext-dev/apps/frappe/frappe/modules/utils.py", line 184 , in load_doctype_module
raise ImportError, 'Module import failed for {0} ({1})'.format(doctype, module_name)
ImportError: Module import failed for Student Batch (erpnext.schools.doctype.student_batch.student_batch)
One main reason why I wanted to upgrade what the note in 8.0.25 “Merge the student group and student batch”. I always wondered why there were two things very similar.
Thoughts on error? If this is a bug I can open a git issue on it.