mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 05:45:37 +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' ```
13 lines
235 B
Bash
Executable File
13 lines
235 B
Bash
Executable File
#!/bin/sh
|
|
|
|
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/create_db.py $@
|