Yes, I have the same problem with running python scripts from console in Debian, the line "#! /usr/bin/python" doesn't help. I have to type "python script.py" in order to run the script.py file.<br>
<br><div><span class="gmail_quote">On 7/26/07, <b class="gmail_sendername">Greg Lindstrom</b> <<a href="mailto:greg.lindstrom@novasyshealth.com">greg.lindstrom@novasyshealth.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>I am running python 2.4.2 on Gentoo Unix and am having problems running<br>programs. I have a script, hello.py as such:<br><br>#! /usr/bin/python<br>print 'hello, world'<br><br>that I save and add executable permission. Then at the prompt I type in..
<br><br>$ ./hello.py<br>-bash: ./hello.py: /usr/bin/python: bad interpreter: Permission denied<br><br>If I type<br>$ python hello.py<br>I get "hello, world" as expected.<br><br>I was hoping that the "shabang" would have the script execute. Am I
<br>missing something? Can you help me? BTW, when I type /usr/bin/python<br>at the prompt I get the python interpreter, so at least that's working.<br><br>Thanks,<br>--greg<br><br>_______________________________________________
<br>Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>