cx_freeze error

Peter Hansen peter at engcorp.com
Sat Jan 29 22:57:34 EST 2005


zyqnews at 163.net wrote:
> There is no any module like "re.py", I just  compiled the hello.py it
> has only one line:
> print "hello!"

Interesting.  Just to confirm, could you try this?  Run
Python, and at the interactive prompt, type the following:

 >>> import re
 >>> re.compile
<function compile ....>
 >>> re.__file__
(path to file re.pyc)

If you get an AttributeError after the second line, then
the result of the third line (re.__file__) will tell you
where this "re" module is that doesn't have a compile()
function like it should have.

Either there's an "re" kicking around that shouldn't be
there, or cx_freeze is doing something weird... at least,
those are the only theories that come to mind.

-Peter




More information about the Python-list mailing list