Please help! bench update and retry-upgrade are giving this error:
global name ‘frappe’ is not defined
Now the system is down: “Updating. We will be back in a few moments…”
I appreciate!
Please help! bench update and retry-upgrade are giving this error:
global name ‘frappe’ is not defined
Now the system is down: “Updating. We will be back in a few moments…”
I appreciate!
Getting same error after update. ERP is down. Any Solutions???
-Amit
Same to me. Can you please have a look.
Thank you.
Same issue here on ‘bench update’ as frappe user or root user:-
Executing erpnext.patches.v5_0.portal_fixes in demo.erp.xxxxxxxx.net (1bd3e0294d)
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/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 77, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 14, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands.py", line 28, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands.py", line 205, in migrate
frappe.modules.patch_handler.run_all()
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
if not run_single(patchmodule = patch):
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v5_0/portal_fixes.py", line 2, in execute
frappe.reload_doctype("Web Form Field")
NameError: global name 'frappe' is not defined
I got same error…just tried to bench update
from v5.0.11
Sorry! Pushed the fix. Please update again.
-Anand.
Fantastic…Thanks
Thank you!!!
That seems to have done the trick. Update went through without error. Thanks
Thank you very much!!!
This topic was automatically closed after 12 hours. New replies are no longer allowed.