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

cannot import name GdkPixbuf, introspection typelib not found #82

Open
Drjacky opened this issue Jan 16, 2022 · 1 comment
Open

cannot import name GdkPixbuf, introspection typelib not found #82

Drjacky opened this issue Jan 16, 2022 · 1 comment

Comments

@Drjacky
Copy link

Drjacky commented Jan 16, 2022

~ photocollage
Traceback (most recent call last):
  File "/usr/local/bin/photocollage", line 21, in <module>
    from photocollage import gtkgui
  File "/usr/local/lib/python3.9/site-packages/photocollage/gtkgui.py", line 29, in <module>
    from photocollage import APP_NAME, artwork, collage, render
  File "/usr/local/lib/python3.9/site-packages/photocollage/artwork.py", line 21, in <module>
    from gi.repository import GdkPixbuf
  File "/usr/local/lib/python3.9/site-packages/gi/importer.py", line 131, in load_module
    raise ImportError('cannot import name %s, '
ImportError: cannot import name GdkPixbuf, introspection typelib not found
@rljacobson
Copy link

I don't know if this is the same issue as yours, but I had to modify the import in artwork.py to be:

import gi

gi.require_version('GdkPixbuf', '2.0')
from gi.repository import GdkPixbuf

I still haven't gotten it to run correctly, but at least I got rid of the error complaining about GdkPixbuf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants