[pygtk] pygtk-codegen-2.0 and gobject interfaces?
Michael Sheldon
mike at mikeasoft.com
Wed Jul 4 15:07:31 WST 2007
Hi,
I'm attempting to write some python bindings for libempathy using
pygtk-codegen-2.0. However, if I build the bindings against python 2.5
I get the following error when importing them:
>>> import pyempathy
** (process:6982): WARNING **: couldn't make the type `pyempathy.ContactManager' ready
TypeError: mro() returned base with unsuitable layout ('pyempathy.ContactList')
** (process:6982): WARNING **: couldn't make the type `pyempathy.TpContactList' ready
TypeError: mro() returned base with unsuitable layout ('pyempathy.ContactList')
Fatal Python error: can't initialise module pyempathy
Aborted
However under python 2.4 they work correctly. I understand that this is
perhaps a problem with the way in which pygtk-codegen-2.0 handles gobject
interfaces (pyempathy.ContactList is an interface). What's the correct
way for me to wrap gobject interfaces?
Thanks,
Mike.
--
Michael Sheldon
http://www.mikeasoft.com
More information about the pygtk
mailing list