Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"bad interpreter" when running CLI

See original GitHub issue

Looks 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/ bad interpreter: No such file or directory

$ head -n1 /usr/local/bin/pinboard

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

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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

bhrutledgecommented, Oct 13, 2018

👍 Thanks!

$ python3 -m pip install pinboard==2.1.8

$ pinboard -h
usage: pinboard [-h] [--raw]

$ head -n1 /usr/local/bin/pinboard
dlocommented, Oct 12, 2018

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:

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found