I followed the instruction from here, but now when running Galaxy I get the following error:
Feb 27 12:32:37 ubuntu galaxyctl[2940]: Traceback (most recent call last):
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/lib/galaxy/webapps/galaxy/buildapp.py", line 59, in app_pair
Feb 27 12:32:37 ubuntu galaxyctl[2940]: app = galaxy.app.UniverseApplication(global_conf=global_conf, is_webapp=True, **kwargs)
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/lib/galaxy/app.py", line 691, in __init__
Feb 27 12:32:37 ubuntu galaxyctl[2940]: self._configure_toolbox()
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/lib/galaxy/app.py", line 346, in _configure_toolbox
Feb 27 12:32:37 ubuntu galaxyctl[2940]: ToolBoxSearch(self.toolbox, index_dir=self.config.tool_search_index_dir, index_help=index_help),
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/lib/galaxy/tools/search/__init__.py", line 100, in __init__
Feb 27 12:32:37 ubuntu galaxyctl[2940]: config=toolbox.app.config,
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/lib/galaxy/tools/search/__init__.py", line 197, in __init__
Feb 27 12:32:37 ubuntu galaxyctl[2940]: self.index = self._index_setup()
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/lib/galaxy/tools/search/__init__.py", line 201, in _index_setup
Feb 27 12:32:37 ubuntu galaxyctl[2940]: return get_or_create_index(self.index_dir, self.schema)
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/lib/galaxy/tools/search/__init__.py", line 73, in get_or_create_index
Feb 27 12:32:37 ubuntu galaxyctl[2940]: if index.exists_in(index_dir):
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/.venv/lib/python3.7/site-packages/whoosh/index.py", line 136, in exists_in
Feb 27 12:32:37 ubuntu galaxyctl[2940]: ix = open_dir(dirname, indexname=indexname)
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/.venv/lib/python3.7/site-packages/whoosh/index.py", line 123, in open_dir
Feb 27 12:32:37 ubuntu galaxyctl[2940]: return FileIndex(storage, schema=schema, indexname=indexname)
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/.venv/lib/python3.7/site-packages/whoosh/index.py", line 421, in __init__
Feb 27 12:32:37 ubuntu galaxyctl[2940]: TOC.read(self.storage, self.indexname, schema=self._schema)
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/.venv/lib/python3.7/site-packages/whoosh/index.py", line 664, in read
Feb 27 12:32:37 ubuntu galaxyctl[2940]: segments = stream.read_pickle()
Feb 27 12:32:37 ubuntu galaxyctl[2940]: File "/home/andrea/galaxy/.venv/lib/python3.7/site-packages/whoosh/filedb/structfile.py", line 245, in read_pickle
Feb 27 12:32:37 ubuntu galaxyctl[2940]: return load_pickle(self.file)
Feb 27 12:32:37 ubuntu galaxyctl[2940]: ValueError: unsupported pickle protocol: 5
Feb 27 12:32:37 ubuntu systemd[1]: galaxy-gunicorn.service: Main process exited, code=exited, status=1/FAILURE
Feb 27 12:32:37 ubuntu systemd[1]: galaxy-gunicorn.service: Failed with result 'exit-code'.
Feb 27 12:32:37 ubuntu systemd[1]: galaxy-gunicorn.service: Consumed 6.941s CPU time.
Feb 27 12:32:38 ubuntu systemd[1]: galaxy-gunicorn.service: Scheduled restart job, restart counter is at 39.
Feb 27 12:32:38 ubuntu systemd[1]: Stopped Galaxy gunicorn.
Feb 27 12:32:38 ubuntu systemd[1]: galaxy-gunicorn.service: Consumed 6.941s CPU time.
From my understanding, this pickle module is available only for versions after Python 3.8 (in the .venv created by conda it is 3.7).
EDIT: After deleting several times both .venv and galaxy I’m able to run again Galaxy but I’m at the same point as before since I’m getting the “python: command not found” error.