Error while installing custom app in frappe cloud


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 **
** from bench.cli import cli**
** File “/home/frappe/.local/lib/python3.11/site-packages/bench/cli.py”, line 15, in **
** from bench.commands import bench_command**
** File “/home/frappe/.local/lib/python3.11/site-packages/bench/commands/init.py”, line 5, in **
** from bench.utils.cli import (**
** File “/home/frappe/.local/lib/python3.11/site-packages/bench/utils/cli.py”, line 3, in **
** 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/31] 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
from bench.cli import cli
File “/home/frappe/.local/lib/python3.11/site-packages/bench/cli.py”, line 15, in
from bench.commands import bench_command
File “/home/frappe/.local/lib/python3.11/site-packages/bench/commands/init.py”, line 5, in
from bench.utils.cli import (
File “/home/frappe/.local/lib/python3.11/site-packages/bench/utils/cli.py”, line 3, in
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)
------
Dockerfile:171
--------------------
--------------------
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