-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GTK in Windows: Typelib for HarfBuzz version '0.0' is not found #5129
Comments
I was able to resolve this by creating a pre_safe and a normal hook. I will submit a PR to close this. |
9 tasks
danyeaw
added a commit
to danyeaw/pyinstaller
that referenced
this issue
Sep 1, 2020
Fixes pyinstaller#5129 which is an error for gi.RepositoryError: Typelib file for namespace 'HarfBuzz', version '0.0' not found. The cause of this error is that Gtk and Pango now include HarfBuzz-0.0 as a typelib that needs to be loaded with the other libraries. This change adds hooks for this typelib.
danyeaw
added a commit
to danyeaw/pyinstaller
that referenced
this issue
Sep 1, 2020
Fixes pyinstaller#5129 which is an error for gi.RepositoryError: Typelib file for namespace 'HarfBuzz', version '0.0' not found. The cause of this error is that Gtk and Pango now include HarfBuzz-0.0 as a typelib that needs to be loaded with the other libraries. This change adds hooks for this typelib.
danyeaw
added a commit
to danyeaw/pyinstaller
that referenced
this issue
Sep 1, 2020
Fixes pyinstaller#5129 which is an error for gi.RepositoryError: Typelib file for namespace 'HarfBuzz', version '0.0' not found. The cause of this error is that Gtk and Pango now include HarfBuzz-0.0 as a typelib that needs to be loaded with the other libraries. This change adds hooks for this typelib.
danyeaw
added a commit
to danyeaw/pyinstaller
that referenced
this issue
Sep 1, 2020
Fixes pyinstaller#5129 which is an error for gi.RepositoryError: Typelib file for namespace 'HarfBuzz', version '0.0' not found. The cause of this error is that Gtk and Pango now include HarfBuzz-0.0 as a typelib that needs to be loaded with the other libraries. This change adds hooks for this typelib.
Legorooj
pushed a commit
that referenced
this issue
Sep 2, 2020
Fixes #5129 which is an error for gi.RepositoryError: Typelib file for namespace 'HarfBuzz', version '0.0' not found. The cause of this error is that Gtk and Pango now include HarfBuzz-0.0 as a typelib that needs to be loaded with the other libraries. This change adds hooks for this typelib.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description of the issue
Packaging Gtk apps in Windows with pyinstaller now gives an error that the Typelib for HarfBuzz version '0.0' is not found. Recent changes to Gtk/Pango are now including the typelib for HarfBuzz. I think we need to add a hook to include this typelib.
Steps to Reproduce the Problem
python -m venv .venv
source .venv/bin/activate
pip install pygobject pyinstaller==3.6
pyinstaller --exclude-module tk --exclude-module tcl --exclude-module _tkinter helloworld.py
./dist/helloworld/helloworld.exe
(see full stacktrace below)
Expected behavior:
Hello world PyGObject example runs fine when packaged with pyinstaller:
Context information (for bug reports)
pyinstaller --version
: 3.6 (I can't use latest because of utils.hooks.collect_system_data_files() scans parent of the given path instead of the path itself #5058)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
Stacktrace / full error message
Gtk now includes the typelib for HarfBuzz:
The shared library is libharfbuzz-gobject-0.dll:
Things I Have Tried So Far
I created a new hook called hook-gi.repository.HarfBuzz.py with:
18021 WARNING: Hidden import "gi.repository.HarfBuzz" not found!
The text was updated successfully, but these errors were encountered: