It smells of a py2app issue to me as well...something with the path
settings.
I don't have macports installed on this machine, so that's definitely not
it.
The exact same error happens when doing a hello world program with py2app.
The setup file, unaltered:
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['testpy2app.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
Launching the compiled app throws the same zlib error. I guess I'll need to
start digging through py2app source and figure out where this bug is coming
from.
BZ
On Thu, Jun 23, 2011 at 9:04 AM, Chris Barker <[email protected]> wrote:
> On 6/22/11 7:30 PM, Brian Zambrano wrote:
>
>> Just bumping this. Does anyone have solution or some advice on how to
>> proceed?
>>
>
> The error is:
>>
>> 'import site' failed; use -v for traceback
>>
> ...
>
> zipimport.ZipImportError: can't decompress data; zlib not available
>>
>
> This looks like it has nothing to do with PyQT or anything else, actually,
> but is a raw py2app issue. So the first thing I'd do is try a really simple
> example. That will make it easier for others to try and reproduce the
> failure as well.
>
> Taking a guess, I'd say you're getting a zlib from macports that may rely
> on something else in macports that other users don't have.
>
> Again, I"'d avoid macports for something you want to re-distribute.
>
>
> -Chris
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> [email protected]
>
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG