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

KeyError: 'could not find foreign type Context' #2

Open
jwilk opened this issue Jan 15, 2024 · 0 comments
Open

KeyError: 'could not find foreign type Context' #2

jwilk opened this issue Jan 15, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@jwilk
Copy link
Owner

jwilk commented Jan 15, 2024

On Debian systems, when python3-gi-cairo is not installed, the error message you get is unhelpful:

$ sudo apt-get install python3-gi python3-cairo gir1.2-pango-1.0 python3-gi-cairo-


$ ubanner foo
Traceback (most recent call last):
  File ".../ubanner", line 129, in <module>
    main()
  File ".../ubanner", line 125, in main
    for line in lines:
  File ".../ubanner", line 41, in pango_render
    layout = PangoCairo.create_layout(ctx)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'could not find foreign type Context'

What's going on here?

@jwilk jwilk added the help wanted Extra attention is needed label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant