Join GitHub today
Simple PyQt5 GUI Looks Like GTK When Compiling with PyInstaller on macOS and Windows #3417
I used to build using PyInstaller and everything was working perfectly. I don't know what has changed. I had a pre-configured VM that I used to compile and now it doesn't work as expected.
When I build now, the GUI looks like GTK (very old looking GUI) for some reason.
I've made a VERY simple PyQt5 app and made a clean VM with Python 3.6.4, PyInstaller, PyQt5, and six.
I'm running out of things to test.
Here is the simple PyQt5 app sample app:
Here is the build output:
Any help is greatly appreciated.
Here is the simple PyQt5 app:
And I compile it using the command below:
Looks like some files are not packages, e.g. icons, themes, etc. Please look at the https://github.com/pyinstaller/pyinstaller/wiki/Recipes or search the open and closed issue about the gui system you are using. And please have a look at Make sure everything is packaged correctly for tips to find out what is missing.
My build process has not changed at all. The only things that have changed since it was working are:
I just tried installing everything again on a clean VM with the latest version of Python and PyInstaller but old version of PyQt5 and it works!
So something has changed in the new version of PyQt5 (after version 5.9.2).
I want to debug this for your guys but I don't know how to compare the two versions of PyQt5.
I confirm that the pyqt5_fix works. Use this dev version of PyInstaller if you must use the latest version of PyQt5:
Or install the latest stable version of PyInstaller (currently 3.3.1) and old versions of SIP and PyQt5 until the dev version of PyInstaller is merged with the main branch.
Just wanted to confirm that
I upgraded from
For those that stumble upon this. "Very old GUI" (on MAC) means this:
Instead it should look like this:
@bjones1 no need to sorry, I'm grateful for your time, thank you. There must be some files omitted because the app generated is 23 MB as opposed to the one generated with py2app (240 MB). On the other hand, albeit small, albeit no font aliasing, it seems to work.
I'm going to use py2app for now, but if anyone has any hints for pyinstaller, I'll be no less grateful. Thanks!