.py to .pyc

Terry Reedy tjreedy at udel.edu
Fri Sep 6 08:53:14 EDT 2002


<andrea.baglioni at redturtle.net> wrote in message
news:mailman.1031300768.16629.python-list at python.org...
> Traceback (most recent call last):
>   File "File.py", line 18, in ?
>     import Globals, StructuredText, string, utils, re
> ImportError: No module named Globals
>
> Can anybody help me to find the problem? I think it's a problem of
> $PYTHONPATH and $PYTHONHOME but i'm not sure.

Do the following:

>>> import sys
>>> sys.path
['', 'C:\\Python22\\Lib\\site-packages\\win32',
'C:\\Python22\\Lib\\site-package
s\\win32\\lib', 'C:\\Python22\\Lib\\site-packages',
'C:\\Python22\\Lib\\site-pac
kages\\Pythonwin', 'C:\\PYTHON22\\DLLs', 'C:\\PYTHON22\\lib',
'C:\\PYTHON22\\lib
\\lib-tk', 'C:\\PYTHON22',
'C:\\PYTHON22\\lib\\site-packages\\Numeric']

to find out what is and is not being searched.

Terry J. Reedy






More information about the Python-list mailing list