Jump to content
3 replies to this topic
Posted 18 August 2013 - 10:48 PM
127.0.0.1 - - [19/Aug/2013 14:46:48] "GET /cgi-bin/generate_list.py HTTP/1.1" 200 -
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/http/server.py", line 1128, in run_cgi
os.execve(scriptfile, args, env)
PermissionError: [Errno 13] Permission denied: '/Users/foxet/Downloads/webapp/cgi-bin/generate_list.py'
127.0.0.1 - - [19/Aug/2013 14:46:48] CGI script exit status 0x7f00
Could anyone please tell me why the generate_list.py fail?
Posted 21 August 2013 - 08:41 AM
Please provide the code that you are trying to run (so that we can see if there is a problem with it). Also, tell us which platform you are running on. Mac? Windows? Linux?
Posted 21 August 2013 - 05:41 PM
The code is running on MAC....
print(yate.include_header("Coach Kelly's List of Athletes"))
print(yate.para("Select an athlete"))
for ea in athletes:
Posted 23 August 2013 - 02:31 AM
Your code looks OK, so try this.
In a terminal window, issue this command:
sudo chmod +x /Users/foxet/Downloads/webapp/cgi-bin/generate_list.py
This switches on the "executable bit" on Mac OS X (see the top of page 239 in the book). Without this step, you'll get a permissions error when Python tries to run your generate_list.py code. You need to do this only once.
Hope this helps.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users