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

Shebang problem #4

Closed
cixtor opened this issue Jun 24, 2013 · 1 comment
Closed

Shebang problem #4

cixtor opened this issue Jun 24, 2013 · 1 comment

Comments

@cixtor
Copy link

cixtor commented Jun 24, 2013

When executed without use the binary python, just using the Shebang specification in the file xsssniper.py, it throws an error like this:

$ python xsssniper.py --help
[X] Please install hgapi module:
   $ pip install 

$ ./xsssniper.py --help
./xsssniper.py: line 4: try:: command not found
./xsssniper.py: line 6: except: command not found
Warning: unknown mime-type for "\n[X] Please install hgapi module:" -- using "application/octet-stream"
Error: no such file "\n[X] Please install hgapi module:"
Warning: unknown mime-type for "   $ pip install \n" -- using "application/octet-stream"
Error: no such file "   $ pip install \n"
./xsssniper.py: line 11: syntax error near unexpected token `from'
./xsssniper.py: line 11: `from optparse import OptionParser'

The error was fixed just with a single character in the Shebang specification:

$ diff xsssniper.py xsssniper.py.fork 
1c1
< #/usr/bin/env python

---
> #!/usr/bin/env python
@gbrindisi
Copy link
Owner

Thanks, fixed.

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

No branches or pull requests

2 participants