py2app is broken?

Ben Lau xbenlau at gmail.com
Tue Jan 26 19:33:37 PST 2010


On Tue, Jan 26, 2010 at 1:56 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On Jan 25, 2010, at 23:47, Ben Lau wrote:
>
>> Thanks! But if I build with python2.6 , it make another error.
>
> http://trac.macports.org/ticket/21316
>

Thanks! The ticket is closed and I am able to build an .app now!

However, it have a new problem. When I run `dist/test.app`. It complains:

$ dist//test.app/Contents/MacOS/test -v
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/Users/benlau/src/junkcode/python/mac/dist//test.app/Contents/Resources/__boot__.py",
line 110, in <module>
    _chdir_resource()
  File "/Users/benlau/src/junkcode/python/mac/dist//test.app/Contents/Resources/__boot__.py",
line 108, in _chdir_resource
    import os
zipimport.ZipImportError: can't decompress data; zlib not available
2010-01-27 11:31:03.742 test[34036:903] test Error
2010-01-27 11:31:03.745 test[34036:903] test Error
An unexpected error has occurred during execution of the main script

ZipImportError: can't decompress data; zlib not available

$ find dist/ | grep zlib
dist//test.app/Contents/Resources/lib/python2.6/lib-dynload/zlib.so

zlib.so should already included in the Resource folder...


More information about the macports-users mailing list