[MacPorts] #57086: pdb2pqr @2.1.1: pdb2pqr.py script fails to execute with 'bad interpreter'
MacPorts
noreply at macports.org
Sun Sep 2 18:50:18 UTC 2018
#57086: pdb2pqr @2.1.1: pdb2pqr.py script fails to execute with 'bad interpreter'
--------------------------+---------------------
Reporter: orbeckst | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.3
Keywords: Python, apbs | Port: pdb2pqr
--------------------------+---------------------
Running {{{pdb2pqr -h}}} fails with
{{{
/opt/local/bin/pdb2pqr:2: /opt/local/share/pdb2pqr/pdb2pqr.py: bad
interpreter:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Re: no such
file or directory
}}}
When I call the interpreter (which is hard-coded in the [https://www.in-
ulm.de/~mascheck/various/shebang/ shebang] line of
{{{/opt/local/share/pdb2pqr/pdb2pqr.py}}}) explicitly
{{{
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
/opt/local/share/pdb2pqr/pdb2pqr.py -h
}}}
then it works.
It appears that there's a [https://www.in-
ulm.de/~mascheck/various/shebang/#length limitation to the length of the
shebang line] (although I could not find an authoritative source for
FreeBSD or darwin/macOS).
--
Ticket URL: <https://trac.macports.org/ticket/57086>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list