After upgrading Ubuntu to 20 from 18 I’m getting a weird situation. If I run bench src
from the home folder ~, it seems to run, but bench update
says it isn’t in the right folder. . If I cd into frappe-bench I get errors with any bench commands.
frappe@ubuntu:~$ bench src
/home/frappe/.local/lib/python3.8/site-packages
frappe@ubuntu:~$ cd frappe-bench/
frappe@ubuntu:~/frappe-bench$ bench src
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named ‘encodings’Current thread 0x00007f8984008740 (most recent call first):
AbortedTraceback (most recent call last):
File “/home/frappe/.local/bin/bench”, line 8, in
sys.exit(cli())
File “/home/frappe/.local/lib/python3.8/site-packages/bench/cli.py”, line 48, in cli
if sys.argv[1] in get_frappe_commands() + [“–site”, “–verbose”, “–force”, “–profile”]:
TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘list’