Closed black-sliver closed 5 months ago
Please test the patch:
pip uninstall cx_Freeze
pip install git+https://github.com/marcelotduarte/cx_Freeze.git@refs/pull/2425/head
The application successfully builds and runs now.
As a side note
find build/exe.linux* -name "*.typelib"
does not find anything with either 6.15.2, 7.0.0 or 7.2.0.dev0 with the setup we have.
It however seems to pick up system-wide installed typelibs, which I believe is fine for our application, because pygobject is an optional/alternative dependency for some functionality, depending on which system it ends up running on. But I wanted to put that here in case the expectation is that all typelibs are included now.
The expectation is that some typelibs will be installed, more precisely those on this list, if available: https://github.com/marcelotduarte/cx_Freeze/blob/b17c3db943d4e5364da1979fd256f80661ecee6c/cx_Freeze/hooks/gi.py#L45-L58
Release 7.1.0-post0 is out! Documentation
Describe the bug Freezing in a venv that has pygobject installed via pip will fail.
gir1.2-atk-1.0
does not fix it, because additionally cx_freeze 7.1.0 looks in the wrong folder.Running
DISTUTILS_DEBUG=1 python setup.py build_exe
givesTo Reproduce On a fresh Ubuntu 20.04 (have not tested others, but likely independent of OS version) run
Expected behavior Most likely correct would be to not include the atk typelib, but if this is by choice, then the lookup path should be fixed, so freezing does not fail.
Desktop (please complete the following information):