I have this is issue with pyinstaller on Mac that gives this error when I click on the created executable:
[9888] Error loading Python lib '/Users/Faris/Downloads/as5/dist/startscreen/Python': dlopen: dlopen(/Users/Faris/Downloads/as5/dist/startscreen/Python, 10): no suitable image found. Did find:
/Users/Faris/Downloads/as5/dist/startscreen/Python: code signature invalid for '/Users/Faris/Downloads/as5/dist/startscreen/Python'
This is a GUI application that uses PIL and 4 PNG files. How can I fix this?
I had resolved the same trouble with the following:
pip3 uninstall pyinstaller
brew reinstall python
brew install pyinstaller
Take note that on macOS, python3.7.7 or + and python3.8.3 or + are giving the same error, because of the addition of a full-notarization signing for python to avoid gatekeeper alerts.
Just install Python 3.7.6 or Python 3.8.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With