[Pythonmac-SIG] py2app and zlib

Guillaume VIRY guillaume.viry at gmail.com
Wed May 12 05:04:47 CEST 2010


Hello everyone

I'm trying to package an application with py2app on Snow Leopard, but I
can't even build a Hello Word application.
I installed Python26 via MacPorts, as well as py2app and pyselect with all
their dependencies.
I switch my default Python to the MacPorts one.
So far everything seems fine and the application works perfectly in the
console.
Then, problem. When I try to run the built application:

5/8/10 9:05:55 AM	[0x0-0x2e62e6].org.pythonmac.unspecified.toto[73116]	zipimport.ZipImportError:
can't decompress data; zlib not available

5/8/10 9:05:55 AM	toto[73116]	toto Error

5/8/10 9:05:55 AM	toto[73116]	toto Error

An unexpected error has occurred during execution of the main script

ZipImportError: can't decompress data; zlib not available

5/8/10 9:05:58 AM	com.apple.launchd.peruser.501[111]	([0x0-0x2e62e6].org.pythonmac.unspecified.toto[73116])
Exited with exit code: 255


After further verification, zlib.so is in the built package.
And an "import zlib" works in my python console.

Could anyone help me with this ?
I'm out of ideas :(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20100512/0ae7d2e4/attachment.html>


More information about the Pythonmac-SIG mailing list