question-mark
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.

shebang of average_nucleotide_identity.py seems to be subjective

See original GitHub issue

Just a minor issue: I just installed the current version of pyani via pip. This version includes this shebang, which seems to point to a developers subjective python location: #!/Users/lpritc/Development/GitHub/pyani/venv-pyani/bin/python

Maybe this should be changed to the more generally applicable #!/usr/bin/env python or simply left out completely?

pyani Version: pyani-0.2.2

Python Version: 3.5.2

Operating System: Red Hat Linux

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
widdowquinncommented, Mar 23, 2017

Thanks for spotting and raising that!

It’s correct in the source: https://github.com/widdowquinn/pyani/blob/master/bin/average_nucleotide_identity.py and in the .tar.gz source download

Creation of the .egg for distribution appears to have substituted the path that you see. I’ll get a corrected version out ASAP.

0reactions
widdowquinncommented, Mar 24, 2017

I agree that it’s not an unresolvable issue for those familiar with the command-line and Python interpreter errors 😉

Using python average_nucleotide_identity.py obviously works if you’re in a directory with average_nucleotide_identity.py in it, but I’m hoping that publishing it as a script will enable even those who don’t realise such a thing is possible to use it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should I put #! (shebang) in Python scripts, and what form ...
The shebang line in any script determines the script's ability to be executed like a standalone executable without typing python beforehand in the...
Read more >
How to Use the Shebang in Bash and Python - Linode
A Shebang directive, which always begins with the sequence #! , can sometimes be found on the first line of a Bash or...
Read more >
On Python Shebangs – Michael Catanzaro's Blog
#!/usr/bin/env python seems to work today, but it's subtly very dangerous. Lovely. I don't even know what to recommend to upstream projects.
Read more >
Support shebang #!/usr/bin/env python{2,3} #497 - GitHub
To get around the lack of support for this practice, it seems that the user has to add changes to each individual workspace...
Read more >
Shebang (Unix) - Wikipedia
In computing, a shebang is the character sequence consisting of the characters number sign and exclamation mark ( #!) at the beginning of...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found