Open ronaldoussoren opened 9 years ago
Original comment by Brecht Machiels (Bitbucket: brechtm, GitHub: brechtm).
This is related and possibly useful: https://bugzilla.mozilla.org/show_bug.cgi?id=1011449
py2app does not use @executable_path, this is something in the binary wheel used.
2fde755a903bb9f20c3095b41f1ef4088f435690 adds support for @loader_path.
Original report by Brecht Machiels (Bitbucket: brechtm, GitHub: brechtm).
I'm trying to use py2app to build an application of Zim, using Hombrew-provided Python 2.7.10 and GTK/PyGTK binaries. I get the following error when running ./dist/zim.app/Contents/MacOS/zim from the command line:
This seems to be some kind of security mechanism in OS X, but I have not been able to find much information about this particular problem.
Replacing "@executable_path/../Frameworks/libpyglib-2.0-python.0.dylib" with an absolute path seems to allow the dlopen to succeed. Also replacing it with a path based on @loader_path (@loader_path/../../../../../Frameworks/libpyglib-2.0-python.0.dylib) seems to work. Can py2app somehow use @loader_path instead of @executable_path?
I'm running pyapp 0.9 on OS X 10.11.