Comment 22 for bug 1028640

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1028640] Re: session-installer crashed with TypeError in _on_property_changed(): could not convert type dbus.Array to PyObject required for parameter 0

On Aug 21, 2012, at 06:05 AM, Steve Langasek wrote:

>if 'gi.repository' in sys.modules:
> from gi.repository import GObject
>else:
> try:
> import gobject as GObject
> except:
> from gi.repository import GObject

dbus-python does something like this, with minor differences:

if 'gi' in sys.modules:
    from gi.repository import GObject as gobject
else:
    import gobject

See dbus.gobject_service.py for details.