Skip to content
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

Hooks: Import correct typelib for GtkosxApplication #5475

Merged
merged 1 commit into from Jan 27, 2021

Conversation

danyeaw
Copy link
Contributor

@danyeaw danyeaw commented Jan 17, 2021

This PR updates the hook to import the correct typelib instead of HarfBuzz.

Also puts a guard in place to only use the hook when in macOS to prevent a traceback caused by an import error in Linux and Windows:

10786 INFO: Loading module hook 'hook-gi.repository.GtkosxApplication.py' from '/home/dan/Projects/gaphor/packaging/hooks'...
Traceback (most recent call last):
  File "<string>", line 7, in <module>
gi.repository.GLib.Error: g-irepository-error-quark: Typelib file for namespace 'GtkosxApplication', version '1.0' not found (0)

Updates the hook to import the correct typelib instead of HarfBuzz.
Also puts a guard in place to only use the hook when in macOS to prevent
a traceback caused by an import error in Linux and Windows.
@Legorooj Legorooj merged commit 700c677 into pyinstaller:develop Jan 27, 2021
@danyeaw danyeaw deleted the fix-gtkosx-traceback branch April 17, 2021 17:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants