Update ERROR: No module named 'bench.patches.v3'

Initial bench update failed due to lack of disk space.

Rerunning bench update after freeing up space gives an error: “ERROR: No module named ‘bench.patches.v3’”

==========

frappe@racknerd-212375:~/frappe-bench$ bench update --reset
ERROR: No module named ‘bench.patches.v3’
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/home/frappe/.local/lib/python3.10/site-packages/bench/cli.py”, line 127, in cli
bench_command()
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 1130, in call
return self.main(*args, **kwargs)
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 1055, in main
rv = self.invoke(ctx)
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/.local/lib/python3.10/site-packages/click/core.py”, line 760, in invoke
return __callback(*args, **kwargs)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/commands/update.py”, line 59, in update
update(
File “/home/frappe/.local/lib/python3.10/site-packages/bench/utils/bench.py”, line 404, in update
patches.run(bench_path=bench_path)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/patches/init.py”, line 26, in run
module = importlib.import_module(patch.split()[0])
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 992, in _find_and_load_unlocked
File “”, line 241, in _call_with_frames_removed
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘bench.patches.v3’
^CException ignored in atexit callback: <function check_latest_version at 0x7fdcc4e16710>
Traceback (most recent call last):
File “/home/frappe/.local/lib/python3.10/site-packages/bench/utils/init.py”, line 116, in check_latest_version
pypi_request = requests.get(“https://pypi.org/pypi/frappe-bench/json”)
File “/usr/lib/python3/dist-packages/requests/api.py”, line 76, in get
return request(‘get’, url, params=params, **kwargs)
File “/usr/lib/python3/dist-packages/requests/api.py”, line 61, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/python3/dist-packages/requests/sessions.py”, line 542, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/python3/dist-packages/requests/sessions.py”, line 655, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/python3/dist-packages/requests/adapters.py”, line 439, in send
resp = conn.urlopen(
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 699, in urlopen
httplib_response = self._make_request(
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 382, in _make_request
self._validate_conn(conn)
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 1012, in _validate_conn
conn.connect()
File “/usr/lib/python3/dist-packages/urllib3/connection.py”, line 353, in connect
conn = self._new_conn()
File “/usr/lib/python3/dist-packages/urllib3/connection.py”, line 169, in _new_conn
conn = connection.create_connection(
File “/usr/lib/python3/dist-packages/urllib3/util/connection.py”, line 86, in create_connection
sock.connect(sa)

1 Like

Hi

Try sudo pip3 install frappe-bench -upgrade , then bench update

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.