This is VERY related to the same question I asked on this list a few
days ago.  I *never* got a reply to my question.

For me, it included the _hashlib.pyd, but never picked up the
hashlib.pyc file.  It didn't even try to include the directory
containing the logging module, or the module it depends upon
"atexit.pyc".

Note that it worked PERFECTLY under wxPython 2.7.0

However, I have a workaround...

It's not pleasant.  It shouldn't have to be done, but here it is...

Just add the logging directory to the library.zip file after you
freeze your script.  It should work fine then.  It's a manual step,
and it's a PITA, but at least you'll be able to move forward.

If your freeze process doesn't create the library.zip file, then
manually create one in your executable's directory with the logging
module directory in it.

This is how I got my junk working after upgrading to 2.7.1

Chris.

On Tue, 30 Nov 2010 12:20:01 -0500, Scott Leerssen
<[email protected]> wrote:

>I just updated to Python 2.7.1, and for some reason cx_Freeze is omitting the 
>__init__.py file from the logging module.  It worked find in Python 2.7.  I 
>even tried adding it the packages option in setup.py, but it still didn't pull 
>it in.  Any ideas?
>
>Thanks,
>Scott
>------------------------------------------------------------------------------
>Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
>Tap into the largest installed PC base & get more eyes on your game by
>optimizing for Intel(R) Graphics Technology. Get started today with the
>Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
>http://p.sf.net/sfu/intelisp-dev2dev
>_______________________________________________
>cx-freeze-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to