[Top][All Lists]

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

Meld: Leaky inputs? (from gi.repository import Gtk): Meld requires GTK+

From: Pierre Neidhardt
Subject: Meld: Leaky inputs? (from gi.repository import Gtk): Meld requires GTK+ 3.20 or higher.
Date: Wed, 16 Jan 2019 10:52:13 +0100
User-agent: mu4e 1.0; emacs 26.1

Hi Guix,

I've just pushed the Meld package, but now I'm noticing something
strange: while it works well in a ./pre-inst-env environment, it fails
to start on my out-of-date profile.  Error message:

--8<---------------cut here---------------start------------->8---
Meld requires GTK+ 3.20 or higher.
--8<---------------cut here---------------end--------------->8---

The "meld" executable contains this snippet:

--8<---------------cut here---------------start------------->8---
    gtk_requirement = (3, 20)
    # ...

    # gtk+ and related imports
        # FIXME: Extra clause for gi
        import gi
        gi.require_version("Gtk", "3.0")
        from gi.repository import Gtk
        version = (Gtk.get_major_version(), Gtk.get_minor_version())
        assert version >= gtk_requirement
    except (ImportError, AssertionError, ValueError) as e:
        missing_reqs("GTK+", gtk_requirement, e)
--8<---------------cut here---------------end--------------->8---

Somehow it seems that gi does not load the right GTK version, but I'm
not sure how that's possible at all.

Can anyone reproduce and understand what's happening?

Pierre Neidhardt

Attachment: signature.asc
Description: PGP signature

reply via email to

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