Re: ERROR:root:Requiring namespace 'Gtk' version '2.0', but '3.0' is already loaded
- From: Robert Park <rbpark exolucere ca>
- To: John Palmieri <johnp redhat com>
- Cc: libchamplain-list gnome org, python-hackers-list <python-hackers-list gnome org>
- Subject: Re: ERROR:root:Requiring namespace 'Gtk' version '2.0', but '3.0' is already loaded
- Date: Tue, 16 Nov 2010 18:12:20 -0700
On Tue, Nov 16, 2010 at 1:56 PM, Robert Park <rbpark exolucere ca> wrote:
> On Tue, Nov 16, 2010 at 1:07 PM, John Palmieri <johnp redhat com> wrote:
>>> On Tue, Nov 16, 2010 at 11:13 AM, John Palmieri <johnp redhat com> wrote:
>>> > from gi.repository import Gtk
>>> > Gtk.require_version('2.0')
>
> Ok, just had a chance to try this and it didn't work.
>
> $ 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.require_version('2.0')
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib64/python2.7/site-packages/gtk-2.0/gi/module.py", line
> 212, in __getattr__
> attribute = getattr(self._dynamic_module, name)
> File "/usr/lib64/python2.7/site-packages/gtk-2.0/gi/module.py", line
> 88, in __getattr__
> self.__class__.__name__, name))
> AttributeError: 'DynamicModule' object has no attribute 'require_version'
>>>>
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.
--
http://exolucere.ca
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]