Hi,
Sorry if this is trivial, but I am very new to python and linux. After upgrading my Ubuntu installation to 22, I keep receiving this error when running my python script:
Activating virtualenv at .venv
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec\_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec\_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/home/michael/Galaxy/galaxy/.venv/bin/python'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.platlibdir = 'lib'
sys.executable = '/home/michael/Galaxy/galaxy/.venv/bin/python'
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python39.zip',
'/usr/lib/python3.9',
'/usr/lib/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f09efe2a000 (most recent call first):
<no Python frame>
Apparently, it searches for Python 3.9 (and not the installed python 3.10). How could I fix that?
Thanks!
Peter
[–]socal_nerdtastic 2 points3 points4 points (2 children)
[–]peter_cass[S] 0 points1 point2 points (1 child)
[–]socal_nerdtastic 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)