Open tony-travis opened 4 years ago
Hi Tony,
What happens if you don't preface the command with /usr/local/bcbio/anaconda/bin/python3.6
? You should just be able to run bcbio_nextgen.py
by itself.
On 11/04/2020 19:55, Rory Kirchner wrote:
Hi Tony,
What happens if you don't preface the command with |/usr/local/bcbio/anaconda/bin/python3.6|? You should just be able to run |bcbio_nextgen.py| by itself.
Hi, it was submitted to "slurm" as a batch file containing:
!/bin/bash
SBATCH -N 1
SBATCH --output=/work/EOC/log/paganetti_analysis.log
set -o nounset
PROJECTDIR="/work/EOC/paganetti/papin/Tau_KO_Papin-64260198/papin/" CONFIG="/work/EOC/paganetti/papin/Tau_KO_Papin-64260198/papin/config/papin.yaml" CORES=36
echo "Running on $SLURMD_NODENAME" export PATH=/usr/local/bcbio/bin:$PATH
cd "$PROJECTDIR/work"
bcbio_nextgen.py -t ipython -s slurm -q main -n $CORES $CONFIG -r timelimit=+30-00:00:00
I used "pgrep" to see how the job was being executed, and that is where the /usr/local/bcbio/anaconda/bin/python3.6 comes from. All the machines in the cluster default to Python 2:
manager@brigante:~$ dsh -Ma -- python -V brigante.local: Python 2.7.17 firefly.local: Python 2.7.17 serenity.local: Python 2.7.17 destiny.local: Python 2.7.17
That's why I thought it was "bcbio_nextgen.py" running "python3.6"...
We'll try it again, but not running the script as a "slurm" job.
Thanks,
Tony.
-- Minke Informatics Limited, Registered in Scotland - Company No. SC419028 Registered Office: 3 Donview, Bridge of Alford, AB33 8QJ, Scotland (UK) tel. +44(0)19755 63548 http://minke-informatics.co.uk mob. +44(0)7985 078324 mailto:tony.travis@minke-informatics.co.uk
Hi, Rory. This might be relevant - There are several 'py' commands, all of which use python3.6:
bcbio@brigante:~$ ls -l /usr/local/bcbio/bin/py*
lrwxrwxrwx 1 bcbio bcbio 18 Mar 31 04:28 /usr/local/bcbio/bin/py -> ../anaconda/bin/py
lrwxrwxrwx 1 bcbio bcbio 19 Mar 31 04:28 /usr/local/bcbio/bin/py2 -> ../anaconda/bin/py2
lrwxrwxrwx 1 bcbio bcbio 21 Mar 31 04:28 /usr/local/bcbio/bin/py2.7 -> ../anaconda/bin/py2.7
lrwxrwxrwx 1 bcbio bcbio 27 Mar 31 04:28 /usr/local/bcbio/bin/pycompleter -> ../anaconda/bin/pycompleter
lrwxrwxrwx 1 bcbio bcbio 28 Mar 31 04:28 /usr/local/bcbio/bin/pycompleter2 -> ../anaconda/bin/pycompleter2
lrwxrwxrwx 1 bcbio bcbio 30 Mar 31 04:28 /usr/local/bcbio/bin/pycompleter2.7 -> ../anaconda/bin/pycompleter2.7
bcbio@brigante:~$ /usr/local/bcbio/bin/py -V
Pythonpy 0.4.11
Python 3.6.10
bcbio@brigante:~$ /usr/local/bcbio/bin/py2 -V
Pythonpy 0.4.11
Python 3.6.10
bcbio@brigante:~$ /usr/local/bcbio/bin/py2.7 -V
Pythonpy 0.4.11
Python 3.6.10
Should "py2" and "py2.7" not be using Python 2.7?
Thanks for looking into the problem,
Tony.
FYI, just installed and experiencing the same error
Version info
To Reproduce
[...]
bcbio-logs.zip
Observed behavior
Expected behavior No syntax error
Log files Please attach (10MB max):
bcbio-nextgen.log
,bcbio-nextgen-commands.log
, andbcbio-nextgen-debug.log
.Additional context This issue has been raised as a Python 3 incompatibility in hisat2 but the "bcbio_nextgen" env should be running Python 2.