Re: [Pythonmac-SIG] Py2app zlib import error

2011-06-22 Thread Ned Deily
In article ,
 Brian Zambrano  wrote:

> Just bumping this.  Does anyone have solution or some advice on how to
> proceed?

You might be able to provide more insight by running the following 
commands on the zlib extension module:

ls -l ./Resources/lib/python2.6/lib-dynload/zlib.so
file ./Resources/lib/python2.6/lib-dynload/zlib.so
otool -L ./Resources/lib/python2.6/lib-dynload/zlib.so

and stating exactly which py2app options you are using to build the app.

-- 
 Ned Deily,
 n...@acm.org

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Py2app zlib import error

2011-06-22 Thread Brian Zambrano
Just bumping this.  Does anyone have solution or some advice on how to
proceed?

As a side note, it seems like many of the threads on this mailing list are
py2app related but it's maintained by only one person?  That's tough for the
maintainer and the rest of the folks using it.  Is there any place to start
if we want to start contributing to py2app?  It's a great project and I've
been relying on it for quite a while...I'd love to help make it better.

BZ


On Mon, Jun 20, 2011 at 10:47 PM, Brian Zambrano  wrote:

> I have a PyQt app which I've been compiling successfully for over a year on
> OS X 10.5.  I've recently upgraded to a new system running 10.6, and my
> py2app builds are failing to boot after compilation.  After some poking
> around, it looks like there are many other folks with the same issues, but I
> haven't found a solution yet.
>
> The error is:
>
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "/Applications/RoastLogger.app/Contents/Resources/__boot__.py", line
> 4, in 
> _chdir_resource()
>   File "/Applications/RoastLogger.app/Contents/Resources/__boot__.py", line
> 2, in _chdir_resource
> import os
> zipimport.ZipImportError: can't decompress data; zlib not available
>
> ...which is identical to the first issue in this thread:
>
> http://mail.python.org/pipermail/pythonmac-sig/2010-September/022629.html
>
> zlib is present also:
>
> find . -name 'zlib*'
> ./Resources/lib/python2.6/lib-dynload/zlib.so
>
> I'm using 2.6.6 MacPython, Py2app 0.6.4, altgraph/modulegraph 0.9 and
> macholib==1.4.1.
>
> Are issues being accepted on the bitbucket page?  I'd be happy to
> contribute in any way.
>
> BZ
>
>
>
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] py2app: unknown required load command 0x800000022

2011-06-22 Thread Christopher Barker

Donovan Parks wrote:

I'm using py2app 0.6.3 with python2.6, PyQt4, numpy, etc. obtained via
macports.


The entire design of macports is based on users building what they need 
on the machine it is running on.


As a result, it does NOT make it easy to build stuff that will run on 
other machines, particularly older versions of the OS.


You may be able to get it all to work, but I suspect it will be a bit 
fragile as ports are updated.


So I'd either:

Build everything on the oldest OS you want to support.

or

Keep away from MacPorts for stuff you want to py2app (I'm surprized it 
works all, actually! ) The python.org builds are easy to use, install, 
and what py2app is mostly targeting and most tested with. I"m not sure 
of the state of binaries for pyQT, but they have certainliy existed in 
the past, and numpy is no problem.



-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

chris.bar...@noaa.gov
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] py2app: unknown required load command 0x800000022

2011-06-22 Thread Brian Zambrano
I hit exactly the same thing recently.  The issue is that PyQt needs to be
compiled against a suitable SDKwhich is 10.5 in your case.  You can
follow this thread to the end to see what worked for me:

http://www.riverbankcomputing.com/pipermail/pyqt/2011-June/029972.html

However, I have no idea how PyQt is compiled for MacPorts.  If you need to
build from source it's really simple.

BZ

On Wed, Jun 22, 2011 at 6:46 AM, Donovan Parks wrote:

> Hello,
>
> I am porting a Python program I wrote on Windows to OS X. On Windows,
> I bundle the application using py2exe and have been using py2app on OS
> X. Using py2app I can obtain an app file that runs on OS X 10.6.
> However, when I copy the app file to other systems (OS X 10.5 or 10.6)
> I get the following errors:
>
> 22/06/11 10:35:01 AM
> [0x0-0x1c3cc3b].org.pythonmac.unspecified.STAMP[54569]
>
> dlopen(/Users/dparks/STAMP_APP_TEST/dist/STAMP.app/Contents/Frameworks/Python.framework/Versions/2.6/Python,
> 1): no suitable image found.  Did find:
> 22/06/11 10:35:01 AM
> [0x0-0x1c3cc3b].org.pythonmac.unspecified.STAMP[54569]
>
> /Users/dparks/STAMP_APP_TEST/dist/STAMP.app/Contents/Frameworks/Python.framework/Versions/2.6/Python:
> unknown required load command 0x8022
> 22/06/11 10:35:01 AM
> [0x0-0x1c3cc3b].org.pythonmac.unspecified.STAMP[54569]
>
> /Users/dparks/STAMP_APP_TEST/dist/STAMP.app/Contents/Frameworks/Python.framework/Versions/2.6/Python:
> unknown required load command 0x8022
> 22/06/11 10:35:01 AM
> [0x0-0x1c3cc3b].org.pythonmac.unspecified.STAMP[54569]
> /Library/Frameworks/Python.framework/Versions/2.6/Python: no matching
> architecture in universal wrapper
>
> I'm using py2app 0.6.3 with python2.6, PyQt4, numpy, etc. obtained via
> macports. I have confirmed that a true standalone application is being
> built. It appears the 0x80022 problem is fairly common when moving
> programs from 10.6 to 10.5. I'm surprised I'm having this problem on
> different 10.6 machines. I'd provide additional details, but am such a
> newb when it comes to OS X I'm not sure what is relevant. Any
> suggestions would be much appreciated.
>
> Cheers,
> Donovan
> ___
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] py2app: unknown required load command 0x800000022

2011-06-22 Thread Donovan Parks
Hello,

I am porting a Python program I wrote on Windows to OS X. On Windows,
I bundle the application using py2exe and have been using py2app on OS
X. Using py2app I can obtain an app file that runs on OS X 10.6.
However, when I copy the app file to other systems (OS X 10.5 or 10.6)
I get the following errors:

22/06/11 10:35:01 AM
[0x0-0x1c3cc3b].org.pythonmac.unspecified.STAMP[54569]
dlopen(/Users/dparks/STAMP_APP_TEST/dist/STAMP.app/Contents/Frameworks/Python.framework/Versions/2.6/Python,
1): no suitable image found.  Did find:
22/06/11 10:35:01 AM
[0x0-0x1c3cc3b].org.pythonmac.unspecified.STAMP[54569]
/Users/dparks/STAMP_APP_TEST/dist/STAMP.app/Contents/Frameworks/Python.framework/Versions/2.6/Python:
unknown required load command 0x8022
22/06/11 10:35:01 AM
[0x0-0x1c3cc3b].org.pythonmac.unspecified.STAMP[54569]
/Users/dparks/STAMP_APP_TEST/dist/STAMP.app/Contents/Frameworks/Python.framework/Versions/2.6/Python:
unknown required load command 0x8022
22/06/11 10:35:01 AM
[0x0-0x1c3cc3b].org.pythonmac.unspecified.STAMP[54569]
/Library/Frameworks/Python.framework/Versions/2.6/Python: no matching
architecture in universal wrapper

I'm using py2app 0.6.3 with python2.6, PyQt4, numpy, etc. obtained via
macports. I have confirmed that a true standalone application is being
built. It appears the 0x80022 problem is fairly common when moving
programs from 10.6 to 10.5. I'm surprised I'm having this problem on
different 10.6 machines. I'd provide additional details, but am such a
newb when it comes to OS X I'm not sure what is relevant. Any
suggestions would be much appreciated.

Cheers,
Donovan
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG