.py to .pyc

andrea.baglioni at redturtle.net andrea.baglioni at redturtle.net
Fri Sep 6 04:25:14 EDT 2002

Hi everybody,

I'm a python newbie and i've a problem.

I want to compile a python file called File.py and i want to produce a file
called File.pyc, so i do

python File.py

I always find the following error:

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.


Thanx in advance


More information about the Python-list mailing list