I just compiled exiv2 and gexiv2 for my debian machiene and now I want to start working with gexiv2 to edit IPTC data using python. The gexiv2 website presents the following line of code:
from gi.repository import GExiv2
But that already results in:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named gi.repository
I can't even import gi so I think I'm missing another package!? What do I have to do to make this work as expected?
UPDATE: I upgraded my OS to the newest debian version. I can import gi now, but I'm still having trouble with GExiv2.
The following error occurs when importing GExiv2:
>>>from gi.repository import GExiv2
ERROR:root:Could not find any typelib for GExiv2
Hi i had the same problem i fixed it by installing gir1.2-gexiv2-0.4
I believe the package you need is python3-gi
or, if you're using Python 2, python-gi
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With