Re: ERROR:root:Requiring namespace 'Gtk' version '2.0', but '3.0' is already loaded



----- "Robert Park" <rbpark exolucere ca> wrote:

> On Tue, Nov 16, 2010 at 6:12 PM, Robert Park <rbpark exolucere ca>
> wrote:
> > Grepping through /usr/share/gir-1.0/Gtk-2.0.gir and Gtk-3.0.gir the
> > closest I could find was check_version, but that doesn't seem to
> quite
> > be the same thing.
> 
> $ python
> Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
> [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
> Type "help", "copyright", "credits" or "license" for more
> information.
> >>> from gi.repository import Gtk
> >>> Gtk.check_version(2, 0, 0)
> >>> Gtk.check_version(3, 0, 0)
> 'Gtk+ version too old (major mismatch)'
> >>>

This is because it is a prerelease, it would be something like (2, 91, 5)

> There you have it, folks, gtk3 is too old, better pack it all in and
> get started on gtk4 in order to satisfy the python gods ;-)
> 
> Still though, I'm not sure how to get my application running :-(
> 
> -- 
> http://exolucere.ca

On your other issue, require_version is a static method, not something that is introspected.  Are you sure you aren't importing gtk (the static bindings) somewhere?  Whenever attrs are missing that is usually the cause.  We really should get around to checking for that.  The most common reason for this issue is a module like libchamplain-python importing it.
 
--
John (J5) Palmieri
Software Engineer
Red Hat, Inc.


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