[Pythonmac-SIG] Py2app error with libpng

Ronald Oussoren ronaldoussoren at mac.com
Tue Nov 24 10:49:37 CET 2009


On 6 Nov, 2009, at 23:55, Kevin Walzer wrote:

> On 11/6/09 11:27 AM, Brian Zambrano wrote:
>> Hi there,
>> 
>> I'm building an app with py2app and it runs successfully both on my
>> computer and a friends.  We both have the developer tools installed.  On
>> two other Macs, the application would die when loading one of the
>> matplotlib .so files.  The problem is that the .so, matplotlib/_png.so,
>> is linking to:
>> 
>> /usr/X11/lib/libpng12.0.dylib
>> 
>> ...which doesn't exist on the two machines where the crash is occurring.
>> 
>> My understanding is that py2app (or, macholib?) tries to resolve these
>> dependencies and copy over the necessary dylibs.
>> 
>> I've tried adding /usr/X11/lib/libpng12.0.dylib to the build with the
>> 'frameworks' argument, but that doesn't seem to do anything.  Now, I'm
>> thinking of doing a manual copy of that file into the Framework
>> directory, along with using install_name_tool.
>> 
>> What's the best way to handle this?
>> 
> 
> py2app typically doesn't include system files. I think /usr/lib is considered a system directory, which may explain why it's not bundling the files.

That's correct. /usr/lib is a system directory, and hence anything in it is assumed to be a file owned by Apple. That's why those files are not copied into the application bundle.

Ronald
> 
> --Kevin
> 
> -- 
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3567 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20091124/eb2711a1/attachment.bin>


More information about the Pythonmac-SIG mailing list