Closed JudeWells closed 1 year ago
What does the error look like?
Are we trying to make this backwards compatible with python 2?
Not trying to make it backwards compatible with python3 but someone told me they had this problem at ISMB. The problem is that we are essentially hard-coding the bash command:
python path/to/pdb_reres.py ex01.pdb
For some users who have python2 and python3 installed on their machine python
is going to be an alias for python version 2. And the correct command for them to run this would be:
python3 path/to/pdb_reres.py ex01.pdb
Possible ways to fix:
Ah right, thanks.
python
-> python3
?Not perfect, but should solve the original problem.
On some windows installs i think python3 doesn't get defined maybe this is the best fix: 'python' -> sys.executable (I think this should always point to to python install that is running the main script).
Yup, much nicer solution
Fixed with commit 35e2bb86fa313ef0c7cb4eb7768ef3850efe23cf
The following code block will not run if eg. user's environment has
python
=python version 2