[Tutor] Help please with a module location error

andy surany mongo57a@comcast.net
Mon Nov 18 16:31:02 2002


I think that this is a problem with IDLE. If I execute a "print"
statement before the "import", it seems to work - at least the first
time. In order to run the program again, I have to re-start IDLE.
However, the program does execute fine from the command line interpreter
AND from a "DOS" prompt.

So, in reference to the expression: "if it hurts, stop doing it", I will
simply run the program from the DOS prompt.

Thanks Doug for helping me on this.

Regards,

Andy

-----Original Message-----
From: Doug.Shawhan@gecits.ge.com <Doug.Shawhan@gecits.ge.com>
To: tutor@python.org <tutor@python.org>
Cc: mongo57a@comcast.net <mongo57a@comcast.net>
Date: Monday, November 18, 2002 3:55 PM
Subject: RE: [Tutor] Help please with a module location error


>> The site-packages directory has no MySQLdb.pth file (and MySQLdb does
>> work...). It does have a Numeric.pth which simply has an entry
"Numeric"
>> in it. Is this correct?
>
>Looks right to me. That is how Numeric is set up on my windows 2000
box.
>(Does anyone else wish that python's pth files were in
>/etc/python/site-packages?)
></whining>
>
>> I would think that IDLE and the command line interpreter would treat
>> paths the same way....
>
>So would I! :-)
>
>> though, maybe not - since it is not working.
>
>It _is_ a conundrum. Numeric works just dandy for me that way. Anyone
else?
>
>_______________________________________________
>Tutor maillist  -  Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor