On Wed, Jan 28, 2009 at 12:24 PM, Smith, Jeff <[email protected]> wrote: > When I run > > python setup.py build > > It works fine and freezes the hello.py as expected.
Good. > I also note that freezing hello.py by and > > cxfreeze hello.py > > Work. But trying to freeze setup.py causes the X error Why are you trying to freeze setup.py? > cxfreeze setup.py > X connection to localhost:10.0 broken (explicit kill or server > shutdown). > > I do note that when I try to freeze my app or the setup.py, and there is > an X server available, the tk libraries are pulled in and there is a > "beep" at the end of the build. This does not happen with hello.py. So something you have in your application is causing this. I'd suspect some module that loads tk somehow. > So what's the best way to diagnose this? I suspect its the code in cx_Freeze/hooks.py that attempts to add the TK installation into the frozen directory for your convenience. The only way to do that is to actually create a TK instance -- which is where you are likely dying. Take a look at the load_Tkinter method. The only way to resolve this problem is to exclude TK from your output. Anthony ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
