Re: TypeError: Expected GObject.Object, but got GObjectMeta ?



Op 09-02-12 14:31, tomw schreef:
Hi folks,

I was using pyGObject extensively for quite some time and it's really
fun to work with. Recently I was moving my stuff to a new installation
running python-gobject 2.28.6 and gobject-introspection 1.31.1. Suddenly
I'm getting a lot of issues with:

TypeError: Expected GObject.Object, but got GObjectMeta
This exception is raised when an object is not initialized. See this example:
>>> from gi.repository import Gtk
>>> box = Gtk.Box()
>>> box.add(Gtk.Button)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
TypeError: Expected Gtk.Widget, but got GObjectMeta
>>> box.add(Gtk.Button())
>>>


in statements like:

animator.set_key(actor, "rotation-angle-y",
Clutter.AnimationMode.LINEAR, 0.0, 0.0)
Too little information here, but if it goes wrong on this line, have a look what the actor object is.

Cheers,
Timo


any idea where this may come from? Never had any issues with that before
with gobject-introspection (0.10.3)

thanks,





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