Hi everyone,
I’m trying to install Galaxy local on a server with Ubuntu 18.04.4 and python 3.10.2 .
Following the steps on the Get Galaxy page, I successfully cloned the git repository. Now the problem is that when I try to run galaxy for the first time using sh run.sh
(or sudo sh run.sh
) I get the following error:
Creating Python virtual environment for Galaxy: .venv
using Python: python3
To avoid this, use the --no-create-venv flag or set $GALAXY_VIRTUAL_ENV to an
existing environment before starting Galaxy.
Fetching https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-16.7.9.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5001k 100 5001k 0 0 25.3M 0 --:--:-- --:--:-- --:--:-- 25.3M
Verifying /tmp/galaxy-virtualenv-pIquIq/virtualenv-16.7.9.tar.gz checksum is 0d62c70883c0342d59c11d0ddac0d954d0431321a41ab20851facf2b222598f3
Using base prefix '/usr'
New python executable in /home/andreaf/galaxy/.venv/bin/python3
Also creating executable in /home/andreaf/galaxy/.venv/bin/python
Traceback (most recent call last):
File "/tmp/galaxy-virtualenv-pIquIq/virtualenv-16.7.9/virtualenv.py", line 2634, in <module>
main()
File "/tmp/galaxy-virtualenv-pIquIq/virtualenv-16.7.9/virtualenv.py", line 860, in main
create_environment(
File "/tmp/galaxy-virtualenv-pIquIq/virtualenv-16.7.9/virtualenv.py", line 1162, in create_environment
install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
File "/tmp/galaxy-virtualenv-pIquIq/virtualenv-16.7.9/virtualenv.py", line 1721, in install_python
fix_local_scheme(home_dir, symlink)
File "/tmp/galaxy-virtualenv-pIquIq/virtualenv-16.7.9/virtualenv.py", line 1807, in fix_local_scheme
if sysconfig._get_default_scheme() == "posix_local":
AttributeError: module 'sysconfig' has no attribute '_get_default_scheme'. Did you mean: 'get_default_scheme'?
How can I fix it?
Thank you for the help