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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1028640

Title:
  session-installer crashed with TypeError in _on_property_changed():
  could not convert type dbus.Array to PyObject required for parameter 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sessioninstaller/+bug/1028640/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to