When I run a python job using pywikibot it works with a simple jsub but fails to import pywikibot module when doing a jsub -once -continuous
It's a problem of a missing environment variable, PYTHONPATH
tools.phetools@tools-login:~$ cat .profile
. ~/.bashrc
export PYTHONPATH=/shared/pywikipedia/core:/shared/pywikipedia/core/externals/httplib2:/shared/pywikipedia/core/scripts
~/.bashrc contains also the same export
trying a simple
$ jsub -l h_vmem=512M -N test_env /bin/bash -c "env"
show PYTHONPATH in ~/test_env.out
but
$ jsub -once -continuous -l h_vmem=512M -N test_env /bin/bash -c "env"
doesn't show anything coming from ~/.profile or ~/.bashrc, same trouble with sh rather than /bin/bash.
results are in /var/data/project/test_env.out.good / /var/data/project/test_env.out.bad the .err is always empty
Version: unspecified
Severity: major