You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title says, I'm unable to start a basic PyQt5 application on Big Sur. Running the application does not render a GUI. The process seems to be busy and I have to force-quit the application to shut it down.
Context information (for bug reports)
Output of pyinstaller --version: 4.0 (I also tried it with the latest development version)
Version of Python: Python 3.8.5 (default, Jul 21 2020, 10:48:26) [Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Platform: macOS Big Sur
Did you also try this on another platform? Does it work there? Yes, it works on
try the latest development version, using the following command:
Run your frozen program from a command window (shell) — instead of double-clicking on it
Package your program in --onedir mode
Package without UPX, say: use the option --noupx or set upx=False in your .spec-file
Repackage you application in verbose/debug mode. For this, pass the option --debug to pyi-makespec or pyinstaller or use EXE(..., debug=1, ...) in your .spec file.
I seem to be getting the exactly same behavior with un-frozen version of your application. So the issue here is not PyInstaller, but Qt5 and Big Sur.
Take a look at this - setting the QT_MAC_WANTS_LAYER=1 environment variables seems to do the trick, both for unfrozen and frozen version. You can set it either in the environment before launching the program, or at the top of your program using os.environ, i.e.:
Description of the issue
As the title says, I'm unable to start a basic PyQt5 application on Big Sur. Running the application does not render a GUI. The process seems to be busy and I have to force-quit the application to shut it down.
Context information (for bug reports)
Output of
pyinstaller --version
:4.0
(I also tried it with the latest development version)Version of Python: Python 3.8.5 (default, Jul 21 2020, 10:48:26) [Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Platform: macOS Big Sur
Did you also try this on another platform? Does it work there? Yes, it works on
try the latest development version, using the following command:
(https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong) and
Make sure everything is packaged correctly
--noupx
or setupx=False
in your .spec-file--debug
topyi-makespec
orpyinstaller
or useEXE(..., debug=1, ...)
in your .spec file.A minimal example program which shows the error
main.py script:
main.spec content:
I'm using PyQt5 5.15.0.
Stacktrace / full error message
None
Please also see https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs
for more about what would use to solve the issue.
The text was updated successfully, but these errors were encountered: