On 25 April 2011 16:28, Robert E A Harvey <[email protected]> wrote: > Resend - the file extensions were blacklisted > > -------- Original Message -------- > Subject: Queer thing - an error report > Date: Mon, 25 Apr 2011 14:44:31 +0100 > From: Robert E A Harvey <[email protected]> > To: [email protected] > > OK, I have Python 3.2 installed in D:\Python3.2\ > I downloaded and ran the msi installer for cxfreeze for Python 3.2, > and it asked if it should use the location from the registry. I told > it to. > > I have cxfreeze and cxfreeze.bat in D:\Python3.2\Scripts > > I copied cxfreeze.bat to my working directory, sorted out the drive > letters within it, and ran it against one of my Python3 programmes. > It produced a whole bunch of stuff in D:\Python3.2\code\dist > (including TCL and TK subdirectories). > > When I run the .exe from the ...\dist directory a dos box flashes up > and goes away again. If I run it from the command line, I get the > following: > ----------------------------------------------------------------------------------------------------------------------- > C:\Program Files\Console>pushd D:\Python3.2\code\dist > > D:\Python3.2\code\dist>ka-client > Traceback (most recent call last): > File > "D:\Python3.2\lib\site-packages\cx_Freeze\initscripts\Console3.py", line > 27, in <module> > exec(code, m.__dict__) > File "ka-client.pyw", line 7, in <module> > File "D:\Python3.2\lib\threading.py", line 7, in <module> > from traceback import format_exc as _format_exc > File "C:\Python32\lib\traceback.py", line 3, in <module> > File "C:\Python32\lib\linecache.py", line 10, in <module> > File "C:\Python32\lib\tokenize.py", line 27, in <module> > ImportError: No module named re > ------------------------------------------------------------------------------------------------------------------------- > > There is no directory C:\Python32 on my machine. Of course. > > Line 7 of ka-client.pyw says: > --------------------------------------------------- > from threading import Event, Thread > -------------------------------------------------- > > The module name "re" does not occur in my code. I suspect it is > truncated.
More likely it is referring to the regular expression module used by tokenize.py. The line numbers appear to be slightly difference, since I'm using 2.6, but line 29 of tokenize.py is: import string, re I suspect you will find line 27 of your tokenize.py is similar. I'm not sure why cx_Freeze doesn't pick up the re module, but it might have something to do with the C:\Python32 confusion as you seem to suspect. Providing the output of the cxfreeze.bat run might help. -- Michael Wood <[email protected]> ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
