Problems after upgrading Ubuntu to 22

Hi everyone,

I just upgraded my Ubuntu 20 to 22, which obviously included an upgrade from python 3.9 to 3.10. However, when I try to start Galaxy using the run.sh script, I now receive the following error:


Activating virtualenv at .venv
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<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):

Can anyone help me how to fix that?

Best

Peter

Hi @cass,
could you try to remove the PYTHONPATH and PYTHONHOME variables?

unset PYTHONPATH
unset PYTHONHOME

Regards

Thanks for the input! However, this does not change the error. I have tried to install python 3.9, but it just gives me errors anyway…