Hi, I'm trying to set up a build on an app using wxPython. My Python installation is managed by Homebrew, and I'm using poetry to manage my development environment.
When I run poetry run python3 setup.py py2app I get a lot of build output, which ends with the error:
If I try to run the resulting .app file I get an error dialog which reads, "A Python runtime not could be located. You may need to install a framework build of Python, or edit the PyRuntimeLocations array in this application's Info.plist file." From the error it seems that it's attempting to pull in the Python3 installation (in /opt/homebrew) using some relative paths.
Hi, I'm trying to set up a build on an app using wxPython. My Python installation is managed by Homebrew, and I'm using poetry to manage my development environment.
When I run
poetry run python3 setup.py py2app
I get a lot of build output, which ends with the error:If I try to run the resulting
.app
file I get an error dialog which reads, "A Python runtime not could be located. You may need to install a framework build of Python, or edit the PyRuntimeLocations array in this application's Info.plist file." From the error it seems that it's attempting to pull in the Python3 installation (in/opt/homebrew
) using some relative paths.My
setup.py
is as follows, adapted from the guide at https://py2app.readthedocs.io/en/latest/examples.html: