[Pythonmac-SIG] Can't convert simple Python script to bundle with py2app

Christopher Barker Chris.Barker at noaa.gov
Mon Dec 1 19:41:06 CET 2008


skip at pobox.com wrote:

> Hmmm...  I just built a framework version.  I configured like so:
> 
>     ../configure --enable-framework='/Users/skip/Applications' \
>                  --enable-shared --prefix='/Users/skip/local' \
>                  CPPFLAGS='-I/Users/skip/local/include -I/opt/local/include' \
>                  LDFLAGS='-L/Users/skip/local/lib -L/opt/local/lib'
> 
> No .dylib file was created.


maybe that was a red hearing. I just did a quick look on my system:

$ locate libpython
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpython.dylib
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpython2.3.dylib
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpython2.dylib
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/libpython2.5.a
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/libpython2.6.a
/usr/lib/libpython.dylib
/usr/lib/libpython2.3.dylib
/usr/lib/libpython2.dylib

so it looks like things have changed some between 2.3 and 2.5. This is 
an OS-X 10.4 system, so 2.3 is apple's build. 2.5 and 2.6 are the 
python.org Framework builds.

Is there a chance that your py2ap is getting confused about what python 
it is running in?


 >        raise ValueError('%r does not exist' % (pathname,))
 >    ValueError: '/Users/skip/local/lib/libpython2.7.dylib' does not
 > exist

You're building a 2.7? what is that? I thought Python was going from 2.6 
to 3.0.


-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.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list