Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version in shebang #7

Closed
GoogleCodeExporter opened this issue May 15, 2015 · 1 comment
Closed

Version in shebang #7

GoogleCodeExporter opened this issue May 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. ./sync_ldap.py on a Fedora system.

What is the expected output?
Script should use the default installed Python interpreter (typically
/usr/bin/python).

What do you see instead?
"bash: ./sync_ldap.py: /usr/bin/python2.4: bad interpreter: No such file or
directory"

What version of the product are you using? On what operating system?
SVN revision 49, on Fedora 8 x86_64

Please provide any additional information below.
The versioned python isn't a universal convention. 

I might recommend checking for the version using something like:
#!/usr/bin/env python
import sys
if sys.version_info[:2] < (2, 4):
  print "need python 2.4"
  sys.exit(1)

 Thanks!

Original issue reported on code.google.com by danielmy...@gmail.com on 27 Feb 2008 at 5:08

@GoogleCodeExporter
Copy link
Author

Original comment by RobertEs...@gmail.com on 23 May 2008 at 6:58

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant