bad install or something else?

59 views
Skip to first unread message

swanee

unread,
Jul 16, 2016, 12:07:17 PM7/16/16
to web.py
i'm trying to run a super simple python script with web.py using the tutorial here: http://webpy.org/tutorial3
when i installed web.py from the terminal it said it was successfully installed, but when i run "hello.py" i get an error (screenshot below).  does it seem like this is a bad installation maybe--or am i missing something (probably)?


Anand Chitipothu

unread,
Jul 16, 2016, 1:14:18 PM7/16/16
to we...@googlegroups.com
The problem is with your filename. Since you called it cgi.py, Python is trying to load your own file instead of standard library module cgi. Rename your cgi.py to something else and remove cgi.pyc file that would have been created during this process. That should solve your problem.

Anand


daivl...@gmail.com

unread,
Sep 10, 2016, 9:53:16 AM9/10/16
to web.py
what is your python scirpt?
Reply all
Reply to author
Forward
0 new messages