Hi pdvyas,
Many thanks.
I had to start again, as I was getting the same error, and now I am getting:
I deleted all emails settings before, and uninstalled shopping-cart with
./env/bin/pip uninstall shopping_cart
rm -rf apps/shopping_cart
I also removed shopping_cart from sites/apps.txt
Running latest for site1.local
--------------------------------------------------
Traceback (most recent call last):
File "/home/erpnext/frappe-bench/env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.12.1', 'console_scripts', 'frappe')()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
ret = run(fn, args)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
out = globals().get(fn)(**args)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
return fn(*args, **new_kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 448, in latest
frappe.modules.patch_handler.run_all()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
if not run_single(patchmodule = patch):
File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 58, in execute_patch
block_user(True)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 100, in block_user
frappe.db.set_global('__session_status', block and 'stop' or None)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 596, in set_global
self.set_default(key, val, user)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 604, in set_default
frappe.defaults.set_default(key, val, parent, parenttype)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/defaults.py", line 87, in set_default
add_default(key, value, parent)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/defaults.py", line 98, in add_default
d.insert(ignore_permissions=True)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 160, in insert
self.run_method("before_insert")
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 466, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 571, in composer
doc_events = frappe.get_hooks("doc_events", {})
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 630, in get_hooks
hooks = _dict(cache().get_value("app_hooks", load_app_hooks))
File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 49, in get_value
val = generator()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 601, in load_app_hooks
app_hooks = get_module(app + ".hooks")
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 521, in get_module
return importlib.import_module(modulename)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named shopping_cart.hooks
Error: None
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.1', 'console_scripts', 'bench')()
File "/home/erpnext/bench-repo/bench/cli.py", line 38, in cli
return bench()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 610, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 590, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 416, in invoke
return callback(*args, **kwargs)
File "/home/erpnext/bench-repo/bench/cli.py", line 172, in update
patch_sites()
File "/home/erpnext/bench-repo/bench/utils.py", line 93, in patch_sites
exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, 'sites'))
File "/home/erpnext/bench-repo/bench/utils.py", line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/erpnext/frappe-bench/env/bin/frappe --latest all' returned non-zero exit status 1
Error: None
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.1', 'console_scripts', 'bench')()
File "/home/erpnext/bench-repo/bench/cli.py", line 38, in cli
return bench()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 610, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 590, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 416, in invoke
return callback(*args, **kwargs)
File "/home/erpnext/bench-repo/bench/cli.py", line 210, in _migrate_to_v5
migrate_to_v5(bench=bench)
File "/home/erpnext/bench-repo/bench/migrate_to_v5.py", line 16, in migrate_to_v5
exec_cmd("{bench} update".format(bench=sys.argv[0]))
File "/home/erpnext/bench-repo/bench/utils.py", line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/usr/local/bin/bench update' returned non-zero exit status 1