[Pythonmac-SIG] py2app zlib error
Ronald Oussoren
ronaldoussoren at mac.com
Thu Sep 22 16:46:00 CEST 2011
On 16 Sep, 2011, at 8:51, Neacsa Bogdan Valentin wrote:
> Hello,
>
> So I've created an app using py2app. It has a rather large number of dependencies but I've managed to make it work on my PC (Mac OS X 10.5.8). However now I'm testing it on a different machine (still a Mac OS 10.5.8) and it won't work.
>
> It crashes right from the start with a :
>
> zipimport.ZipImportError: can't decompress data; zlib not available
>
> I've checked and zlib.so is in lib-dynload. What could cause this?
What version of python and py2app do you use?
To debug you can add a print statement to yourapp.app/Contents/Resources/__boot__.py. In particular, add these two lines to the top of that file:
import sys
print sys.path
If all is well the correct lib-dynload should be on sys.path before the zipfile containing the rest of the application. One thing you could also try: edit py2app/build_app.py and look for 'compressed = True', change that to 'compressed = False'. This ensures that the zipfile with the application files won't be compressed. That's not guaranteed to give a useful result though, there may be other problems with the application bundle.
Ronald
>
> Regards,
> Bogdan
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110922/6bbc52cd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110922/6bbc52cd/attachment.bin>
More information about the Pythonmac-SIG
mailing list