[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Python and GExiv2

From: sirgazil
Subject: Using Python and GExiv2
Date: Mon, 17 Jun 2019 14:12:05 -0500
User-agent: Zoho Mail


I used to use a python script to clear image metadata in Debian:

    import gi
    gi.require_version("GExiv2", "0.10")
    from gi.repository import GExiv2

    metadata = GExiv2.Metadata("/tmp/something.png")

I'm trying to make this work in the GNU system I installed with Guix, but I 
haven't been able to. So far, I have installed the following packages with guix:

    gobject-introspection 1.56.1
    python 3.70
    python-pygobject 3.28.3
    gexiv2 0.10.10

I've also added the output of "guix package --search-paths" to my 

However, when I run the script above, I get the following error:

    $ python3 
    Traceback (most recent call last):
      File "", line 2, in <module>
        gi.require_version("GExiv2", "0.10")
"/home/sirgazil/.guix-profile/lib/python3.7/site-packages/gi/", line 
130, in require_version
        raise ValueError('Namespace %s not available' % namespace)
    ValueError: Namespace GExiv2 not available

I don't know what I'm missing...

I'm using this guix:

    $ LANG=C guix describe
    Generation 3        Jun 15 2019 09:49:31    (current)
      guix ddd401d
        repository URL:
        branch: master
        commit: ddd401d28fb09f1f8ce96f2fc24226887a812412


reply via email to

[Prev in Thread] Current Thread [Next in Thread]