Frappe Framework install error in Frappe Cloud

I got this error when running a deployment for my custom app. This error is related to the frappe framework. Anyone knows why this error is showing? Sometimes it works, sometimes it doesnt.

I can drop site, drop bench, and create the whole bench all over again but this has already happened a few times. Too tedious to do the whole process every time this error occurs.

Error msg:

bench init --python /usr/bin/python3.11 --no-backups --frappe-path file:///home/frappe/context/apps/frappe frappe-bench
Traceback (most recent call last):
  File "/home/frappe/.local/bin/bench", line 5, in <module>
    from bench.cli import cli
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/cli.py", line 15, in <module>
    from bench.commands import bench_command
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/commands/__init__.py", line 5, in <module>
    from bench.utils.cli import (
  File "/home/frappe/.local/lib/python3.11/site-packages/bench/utils/cli.py", line 3, in <module>
    from click.core import _check_multicommand
ImportError: cannot import name '_check_multicommand' from 'click.core' (/home/frappe/.local/lib/python3.11/site-packages/click/core.py)
process "/bin/sh -c bench init --python /usr/bin/python${PYTHON_VERSION} --no-backups --frappe-path file:///home/frappe/context/apps/frappe frappe-bench `#stage-apps-frappe`" did not complete successfully: exit code: 1
------
[stage-0 20/29] RUN --mount=type=cache,sharing=locked,target=/home/frappe/.cache,uid=1000,gid=1000 --mount=type=bind,source=apps/frappe,target=/home/frappe/context/apps/frappe bench init --python /usr/bin/python3.11 --no-backups --frappe-path file:///home/frappe/context/apps/frappe frappe-bench `#stage-apps-frappe`:
Traceback (most recent call last):
File "/home/frappe/.local/bin/bench", line 5, in <module>
from bench.cli import cli
File "/home/frappe/.local/lib/python3.11/site-packages/bench/cli.py", line 15, in <module>
from bench.commands import bench_command
File "/home/frappe/.local/lib/python3.11/site-packages/bench/commands/__init__.py", line 5, in <module>
from bench.utils.cli import (
File "/home/frappe/.local/lib/python3.11/site-packages/bench/utils/cli.py", line 3, in <module>
from click.core import _check_multicommand
ImportError: cannot import name '_check_multicommand' from 'click.core' (/home/frappe/.local/lib/python3.11/site-packages/click/core.py)
------
failed to solve: process "/bin/sh -c bench init --python /usr/bin/python${PYTHON_VERSION} --no-backups --frappe-path file:///home/frappe/context/apps/frappe frappe-bench `#stage-apps-frappe`" did not complete successfully: exit code: 1

Did you solve this issue, cause I faced the same issue

I reached out to Frappe support - they updated the “bench” version on the private bench. I think that should fix this issue. You can update the version by going to your bench group > Dependencies.

3 Likes