cx_freeze error

Peter Hansen peter at engcorp.com
Sun Jan 30 03:58:43 CET 2005


zyqnews at 163.net wrote:
> I am new to Python. I made a script, and compiled it with cx_freeze,
> but I got the following message from it:
> 
> [cxfreeze]$./FreezePython hello.py
> Traceback (most recent call last):
> File "initscripts/ConsoleKeepPath.py", line 15, in ?
> exec code in m.__dict__
> File "FreezePython.py", line 1, in ?
> File "optparse.py", line 72, in ?
> File "textwrap.py", line 32, in ?
> File "textwrap.py", line 81, in TextWrapper
> AttributeError: 'module' object has no attribute 'compile'
> Does anyone know what I should do ?

Possibly do not use the name "re.py" for your own module, as it
is the name of a standard library module as well.

At least, that's what an analysis of line 81 of "textwrap.py"
suggests might be your problem.  Do you have a module named
"re.py"?

-Peter



More information about the Python-list mailing list