Closed chrisgulvik closed 2 years ago
adding "docker" or "singularity" in the profile opt does pull in py3 as expected, so feature would only help users that don't specify either of those
Added check for python3 rather than python2: See https://github.com/jennahamlin/mashwrapper/commit/0fce171f6c1aa44b6d40d4c0c42924f51436b197
Description of feature
It might be nice to add a python version check just to verify it's some py3 version. Something like
python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))'
prints just2.7.5
for me.A modern env will probably have py3 as default but in a system I tested that had py2.7, it ran through trying to use it which failed due to newer syntax used that requires py3.
Example Commands:
local download the workflow to $HOME
git clone https://github.com/jennahamlin/mashwrapper.git $HOME/mashwrapper
make nextflow available on HPC
module purge && ml nextflow
view versions
test run db download
nextflow run $HOME/mashwrapper/main.nf -profile testGet
Example Error (due to py2 being used instead of py3):