[Pythonmac-SIG] newbie

salamander andrew at salamander.net
Thu Mar 11 12:29:43 EST 2004


hy folks,

i'm new to python, coming from php-land.

trying to execute the "squares.py" script from VQS's Python book, as a 
CGI:


---snip---
#!/usr/bin/python

for x in range(1,6):
   print x, x*x
---snip--

but I get an Internal Server Error 500 in apache, and the error_log 
shows:

[Thu Mar 11 12:10:47 2004] [error] (2)No such file or directory: exec 
of /www/test/pyvqs/squares.py failed
[Thu Mar 11 12:10:47 2004] [error] [client 127.0.0.1] Premature end of 
script headers: /www/test/pyvqs/squares.py


can anyone give me an idea on how to solve this?

best,
andrew




More information about the Pythonmac-SIG mailing list