mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
In particular add virtualenv activation to extract_dataset_parts.sh to fix the following error when running tools which use `<parallelism>`: ``` Fatal error: /tmp/tmpOoQ01k/job_working_directory/000/12/task_0: Traceback (most recent call last): File "./scripts/extract_dataset_part.py", line 17, in <module> import galaxy.model.mapping # need to load this before we unpickle, in order to setup properties assigned by the mappers File "/opt/galaxyproject_galaxy_release_17.05/lib/galaxy/model/__init__.py", line 20, in <module> from six import string_types ModuleNotFoundError: No module named 'six' ```
18 lines
413 B
Bash
Executable File
18 lines
413 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#######
|
|
# NOTE: To downgrade to a specific version, use something like:
|
|
# sh manage_db.sh downgrade --version=3 <tool_shed if using that webapp - galaxy is the default>
|
|
#######
|
|
|
|
cd `dirname $0`
|
|
: ${GALAXY_VIRTUAL_ENV:=.venv}
|
|
|
|
if [ -d "$GALAXY_VIRTUAL_ENV" ];
|
|
then
|
|
printf "Activating virtualenv at $GALAXY_VIRTUAL_ENV\n"
|
|
. "$GALAXY_VIRTUAL_ENV/bin/activate"
|
|
fi
|
|
|
|
python ./scripts/manage_db.py $@
|