Yes, I have the same problem with running python scripts from console in Debian, the line &quot;#! /usr/bin/python&quot; doesn&#39;t help. I have to type &quot;python script.py&quot; 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> &lt;<a href="mailto:greg.lindstrom@novasyshealth.com">greg.lindstrom@novasyshealth.com</a>&gt; 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.&nbsp;&nbsp;I have a script, hello.py as such:<br><br>#! /usr/bin/python<br>print &#39;hello, world&#39;<br><br>that I save and add executable permission.&nbsp;&nbsp;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 &quot;hello, world&quot; as expected.<br><br>I was hoping that the &quot;shabang&quot; would have the script execute.&nbsp;&nbsp;Am I
<br>missing something?&nbsp;&nbsp;Can you help me?&nbsp;&nbsp;BTW, when I type /usr/bin/python<br>at the prompt I get the python interpreter, so at least that&#39;s working.<br><br>Thanks,<br>--greg<br><br>_______________________________________________
<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<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>