Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Freezing a PyGI app - Part 4 #3257
PyInstaller 3.3 runs successfully to completion for my simple PyGI app, but the .exe complaints of missing typelibs, when they are added it just crashes. Using an older version of PyInstaller works fine with the same app.
My initial set up was Python 3.4, 64 bits on Windows 10, PyGI version 3.24.1 rev 1 from the all-in-one installer available at sourceforge, and PyInstaller 3.3.1 installed via pip.
In my specfile, I only added
PyInstaller run successfully but when I tried to execute the .exe it wouldn't do anything.
Googling I found this issue: #1966 , so I tried using pyinstaller with a even simpler app, in this case the Button example from the PyGobject Tutorial. The outcome was the same.
This was looking a lot like the original issue, so following the comments I manually added the GdkPixbuf typelib (
So I manually copied the GModule typelib (
After doing this the executable simply crashed with no traceback. And windows showed the typical "gui.exe has stopped working" message.
Here I'd like to mention that per the patch developed in the mentioned issue, the
I added some
The first print worked fine, but it crashed after that, just like before.
Next thing, I tried using the latest PyInstaller version from github (v 3.4.dev0+ab8fd9753). The result was the same.
After that I tried using an older version of PyGI (v 3.18.2 rev 12). The result was the same.
I tried making the installer several times, using fresh installs of Python 3.4 and PyGI. Also added the hook to copy all typelib files. But it was all the same.
Finally I tried using an older version of PyInstaller. I used version 3.2 (the same as in the mentioned issue) and I added the hook to copy all the typelib files from the PyGI package. This worked perfectly.
I hope this is enough to reproduce the bug (if there is one and I'm not missing something) and help to solve it.
I've not used PyGI AIO recently as it had gotten out of date at some point, but I've had success using the latest versions of GTK et al that are installed via msys2 -- and with some work, pyinstaller works fine with msys2.
I've got scripts and stuff setup to do that at https://github.com/exaile/python-gtk3-gst-sdk , perhaps give those a shot and let me know?