Question: Python modules not found when running job
0
gravatar for jeroen.galle
18 months ago by
jeroen.galle30
Belgium
jeroen.galle30 wrote:

Hi I'm reinstalling my galaxy server to start with supervisord and pass jobs trough slurm. Now my galaxy is running with an admin account and i can log in but when i test the jobs by pasting some text in data upload the job immediately goes to failed state and gives the following error:

Traceback (most recent call last):
  File "/srv/galaxy/server/tools/data_source/upload.py", line 18, in <module>
    from galaxy.datatypes import sniff
  File "/srv/galaxy/server/lib/galaxy/datatypes/sniff.py", line 22, in <module>
    from galaxy.datatypes.binary import Binary
  File "/srv/galaxy/server/lib/galaxy/datatypes/binary.py", line 13, in <module>
    import pysam
ImportError: No module named pysam
Traceback (most recent call last):
  File "/srv/galaxy/server/database/jobs/000/16/set_metadata_ulI5bX.py", line 1, in <module>
    from galaxy_ext.metadata.set_metadata import set_metadata; set_metadata()
  File "/srv/galaxy/server/lib/galaxy_ext/metadata/set_metadata.py", line 23, in <module>
    from sqlalchemy.orm import clear_mappers
ImportError: No module named sqlalchemy.orm

My supervisor galaxy.conf is:

[program:galaxy]
command         = uwsgi --plugin python --virtualenv /srv/galaxy/server/.venv --ini-paste /srv/galaxy/server/config/galaxy.ini
directory       = /srv/galaxy/server
autostart       = true
autorestart     = true
startsecs       = 10
user            = galaxy
stopsignal      = INT

[program:handler]
command         = python ./scripts/galaxy-main -c /srv/galaxy/server/config/galaxy.ini --server-name=handler%(process_num)s
directory       = /srv/galaxy/server
process_name    = handler%(process_num)s
numprocs        = 2
umask           = 022
autostart       = true
autorestart     = true
startsecs       = 10
user            = galaxy
environment     = VIRTUAL_ENV="/srv/galaxy/server/.venv",PATH="/srv/galaxy/server/.venv/bin:%(ENV_PATH)s",DRMAA_LIBRARY_PATH="/usr/lib/slurm-drmaa/lib/libdrmaa.so.1"
stdout_logfile  = /srv/galaxy/server/handler%(process_num)s.log
redirect_stderr = true

[group:gx]
programs = galaxy,handler

Any ideas?

Thanks in advance!

Jeroen

installation supervisord venv • 1.1k views
ADD COMMENTlink written 18 months ago by jeroen.galle30
1
gravatar for david.a.morais
18 months ago by
Canada
david.a.morais110 wrote:

I had a similar problem with the upload tool

I posted the answer here:

https://biostar.usegalaxy.org/p/20865/#21014

I hope this helps you

Cheers

ADD COMMENTlink written 18 months ago by david.a.morais110
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 125 users visited in the last hour