Setting up requirements…
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
Installing 4 applications…
Installing frappe
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e / home/frappe/frappe-bench/apps/frappe
ERROR: Could not find a version that satisfies the requirement ipython~=7.31.1 ( from frappe) (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.1 3.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4. 0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2 , 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2 , 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5 .4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 5.9.0, 5.10.0, 6.0.0rc1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.3.0, 6.3.1, 6.4.0, 6.5.0, 7.0.0b1, 7.0.0rc1, 7.0.0, 7.0.1, 7.1.0, 7.1.1 , 7.2.0, 7.3.0, 7.4.0, 7.5.0, 7.6.0, 7.6.1, 7.7.0, 7.8.0, 7.9.0, 7.10.0, 7.10.1, 7.10.2, 7.11.0, 7.11.1, 7.12.0, 7.13.0, 7.14.0, 7.15.0, 7.16.0, 7.16.1, 7.16.2, 7.16.3)
ERROR: No matching distribution found for ipython~=7.31.1
ERROR:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.6/dist-packages/bench/cli.py”, line 121, in cli
raise e
File “/usr/local/lib/python3.6/dist-packages/bench/cli.py”, line 111, in cli
bench_command()
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 764, in ca ll
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 1137, in inv oke
return process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 956, in invo ke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 555, in invo ke
return callback(*args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/bench/commands/update.py”, line 2 3, in update
update(pull=pull, apps=apps, patch=patch, build=build, requirements=requirem ents, restart_supervisor=restart_supervisor, restart_systemd=restart_systemd, ba ckup=not no_backup, compile=not no_compile, force=force, reset=reset)
File “/usr/local/lib/python3.6/dist-packages/bench/utils/bench.py”, line 394, in update
bench.setup.requirements()
File “/usr/local/lib/python3.6/dist-packages/bench/utils/render.py”, line 95, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/bench/bench.py”, line 341, in req uirements
App(app, bench=self.bench, to_clone=False).install()
File “/usr/local/lib/python3.6/dist-packages/bench/utils/render.py”, line 110, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/bench/app.py”, line 193, in insta ll
app=app_name, bench_path=self.bench.name, verbose=verbose, skip_assets=skip assets,
File “/usr/local/lib/python3.6/dist-packages/bench/app.py”, line 412, in insta ll_app
bench.run(f"{bench.python} -m pip install {quiet_flag} --upgrade -e {app_pat h} {cache_flag}")
File “/usr/local/lib/python3.6/dist-packages/bench/bench.py”, line 43, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File “/usr/local/lib/python3.6/dist-packages/bench/utils/init.py”, line 12 6, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
try pip3 install ipython --upgrade
and try the update again.
Tried, not solved.
try sudo pip3 install ipython --upgrade
and try the update again. Also may we know the operating environment?
Looks like you are using Python < 3.7. Try using Python >=3.7 and it should work.
https://frappeframework.com/docs/v13/user/en/installation#pre-requisites
Here are some commands I used to upgrade to python3.8:
The described issue is resolved by the python upgrade.
Try this
sudo pip3 uninstall setuptools
sudo pip3 install setuptools==59.6.0
sudo pip3 install -e /home/erp/.bench/
I’ve followed the instructions described by Raffael and they worked, but please be sure to have a valid backup at hand as it has pretty serious implications.
I did as described, removed and rebuilt env and had to notice that in the process had removed links to locally installed apps. When rebuilding the bench afterwards, it complained about being unable to find “my_app” (e.g. “Could not find app ‘my_app’.”) even though it still was present in frappe-bench/apps.
My solution was to recreate the app using “bench new-app”, repopulate the hand-crafted parts of my app from the backup, rebuild it using “bench build --app” and finally reinstall it using “bench install-app”. This seems to have worked, but was a pretty scary procedure…
You can include the apps in this line, e.g. below.
env/bin/pip install -e apps/frappe -e apps/erpnext -e apps/doubleledger -e apps/posawesome
Ah, that is good to know for the future - thanks!