On Sat, 16 Jul 2016 at 21:37 swanee <[email protected]> wrote:

> 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)?
>
>
> <https://lh3.googleusercontent.com/-PriE4LguHqs/V4pPYbfTb9I/AAAAAAAAoYs/pEUl49XuyEAghyMzlTlmjLgguHCdaX0KgCLcB/s1600/webpyerror.png>
>
>
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

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to