Changing the folder to site-packages did the trick. Thanks David Shunick
----- Original Message ----- From: "Kent Johnson" <[email protected]> To: "David Shunick" <[email protected]> Cc: [email protected] Sent: Wednesday, August 19, 2009 6:26:19 PM GMT -08:00 US/Canada Pacific Subject: Re: [Tutor] Help on input error On Wed, Aug 19, 2009 at 7:14 PM, David Shunick<[email protected]> wrote: > I'm trying to learn Python, but keep running into the erroor message > ImportError: no module named area. > > I created a file area.py in IDLE. I'm using Python 3.1 and Window XP. After > saving the file in c:/Python31/Lib/Python Modules/area.py > > I can run the program using F5. But when I start a new shell, and enter > import area, that's when I get the error message. And it's not just this > program.I have the same problem with all that I try to import. "Python Modules" is not a folder recognized by Python. Try putting the file in Python31/Lib/site-packages/area.py Kent
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
