Python3 trouble and 12->13

I have been been trying to update frappe and ERPNext on a Ubuntu 20 , upgraded from 18 server. The apps were working fine on 18 with v12.

After much reinstalling of requirements and such , including installing and python3.9 , then uninstalling it I am getting this message:

frappe@ubuntu:~/frappe-bench$ bench version
-bash: /home/frappe/.local/bin/bench: /usr/bin/python3.9: bad interpreter: No such file or directory

With python9 installed:

frappe@ubuntu:~/frappe-bench$ bench version
Traceback (most recent call last):
File “/home/frappe/.local/bin/bench”, line 5, in
from bench.cli import cli
ModuleNotFoundError: No module named 'bench

Both sudo pip3 install and pip3 install frappe-bench have been tried with the python3.8 and 3.9 installed, it completes without error:

Requirement already satisfied: appdirs<2,>=1.4.3 in ./.local/lib/python3.8/site-packages (from virtualenv->frappe-bench) (1.4.4)

It appears bench is confused as to which python3 is in play?

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