[Tutor] Help please with a module location error

andy surany mongo57a@comcast.net
Mon Nov 18 15:43:39 2002


Hey Doug,

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?

I would think that IDLE and the command line interpreter would treat
paths the same way.... though, maybe not - since it is not working.

Regards,

Andy



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


>Howdy Andy,
>
>Have you taken a look in C:\Python22\Lib\site-packages?
>
>You may be lacking .pth files for the various packages you installed!
>
>HTH
>
>d
>
>-----Original Message-----
>From: andy surany [mailto:mongo57a@comcast.net]
>Sent: Monday, November 18, 2002 1:03 PM
>To: tutor@python.org
>Subject: [Tutor] Help please with a module location error
>
>
>This is really strange.....
>
>I have a python221 program which works great under RH Linux 7.3. Now I
>am converting it to run under Windows (95, 98, 2000). Should be pretty
>easy. I use the MySQLdb and Numeric libs, so I downloaded the latest
>versions and installed them in the appropriate place (they both go to
>the same directory).
>
>My program begins execution as follows:
>
>from Tkinter import *
>from tkMessageBox import *                         # get standard
>dialogs
>from tkSimpleDialog import askstring
>import MySQLdb
>import string
>import Numeric
>import time
>
>Under windows (executing from IDLE) I get the following error:
>Traceback (most recent call last):
>  File "<string>", line 1, in ?
>  File "A:\test4.py", line 6, in ?
>    import Numeric
>ImportError: No module named Numeric
>
>Now MySQLdb and Numeric are in the same directory structure.
>
>When I go to the command line interpreter and execute the same code
>manually, everything works.
>
>Can anyone explain??????? I have no clue........
>
>TAI
>
>-Andy
>
>
>_______________________________________________
>Tutor maillist  -  Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor