"bad interpreter" when running CLI
See original GitHub issueLooks like the shebang line on the script is hard-coded to somebody’s local environment:
$ python3 -m pip install pinboard==2.1.6
$ pinboard -h
bash: /usr/local/bin/pinboard: /Users/dan/Projects/pinboard.py/venv/bin/python3: bad interpreter: No such file or directory
$ head -n1 /usr/local/bin/pinboard
#!/Users/dan/Projects/pinboard.py/venv/bin/python3
It works in 2.1.4:
$ python3 -m pip install pinboard==2.1.4
$ pinboard -h
usage: pinboard [-h] [--raw]
...
$ head -n1 /usr/local/bin/pinboard
#!/usr/local/opt/python/bin/python3.6
It’s broken in 2.1.5, but nothing jumps out to me when I compare that tag with 2.1.4.
I don’t know enough (yet) about how package distributions are built to offer a fix.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Not able to execute a .sh file: /bin/bash^M: bad interpreter
The script indicates that it must be executed by a shell located at /bin/bash^M . There is no such file: it's called /bin/bash...
Read more >Bash script: bad interpreter - linux - Stack Overflow
Solution: Edit the file with an editor on Linux and get rid of the extra <cr> . One tool that usually works when...
Read more >[SOLVED] Getting Error while executing a .sh file: /bin/bash^M
Solving the error .sh file: /bin/bash^M: bad interpreter while running a Shell file in Unix system. There are 3 ways to solve this...
Read more >Resolve Issue: Bin/Bash^M: Bad Interpreter: No Such File Or ...
The poor interpreter is another name for this error. You might believe this is a permissions constraint and try using the chmod +x...
Read more >How to solve /bin/bash^M: bad interpreter - Caronte Consulting
You wake up a morning, start your Linux terminal and run your script… a strange message appears: /bin/bash^M: bad interpreter: No such file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👍 Thanks!
Version 2.1.8 just deployed to PyPi. Hopefully this nips it in the bud
@bhrutledge could you give it a shot when it’s available and let me know if things look ok?
For future reference: https://duckduckgo.com/?q=shebang+wrong+wheel+pypi+&t=osx&ia=web