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@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG