Open gauthierbuttez opened 4 years ago
The environment variables you added won't have an effect, py2app doesn't look at those (and neither does the generated app bundle).
The problem you are running into is that py2app (or rather the macholib library used by py2app) does not support "@rpath". Because of this not all shared libraries used by your application are copied in the app bundle.
A workaround for this is to use the python.org installer for Python and install Python packages using pip, although I don't know how realistic this would be for your setup as not all software is available that way.
A recent PR adds support for @rpath
to the loader executable in the generated application bundle, but does not (yet) add support for copying files on the @rpath
to the application bundle.
I'm not sure when I'll get around to doing that, this main blocker is that I don't have homebrew or another python installation using @rpath on my machine. In the end this will require an extension to the code added in 2fde755a903bb9f20c3095b41f1ef4088f435690.
Environment:
Mac OS X Catalina 10.15.6 Python 8
Hi, I try to compile my python code with py2app. Here is my setup.py:
When compilation is done, I run my app with this command in terminal in order to see error and I get this:
So I searched for solution in Google and tried some stuff.
I reinstall openssl with command "brew reinstall openssl"
I added this in my .zshrc file:
I restart my terminal.
I typed these lines in my terminal:
And I still get the same error message. I don't know what else to do.
I uploaded here the logs of the compilation if it can help. I didn't see anything weird: https://github.com/gauthierbuttez/public/blob/master/logs_py2app.txt
Can someone help me please?