Ticket #583 (closed bug: duplicate)
DBus needs a main-loop
| Reported by: | SvenL | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Core | Version: | 0.5 |
| Keywords: | Cc: |
Description
Traceback (most recent call last):
File "/usr/lib/listen/listen.py", line 219, in <module>
File "/usr/lib/listen/listen.py", line 146, in init
self.listen_instance = Listen()
File "/usr/lib/listen/widget/listen.py", line 121, in init
self.dbus_service = ListenDBus(self,player)
File "/usr/lib/listen/dbus_manager.py", line 56, in init
dbus.service.Object.init(self, bus_name, object_path)
File "/var/lib/python-support/python2.5/dbus/service.py", line 416, in init
self._connection._register_object_path(object_path, self._message_cb, self._unregister_cb)
RuntimeError?: To make asynchronous calls, receive signals or export objects, D-Bus connections must be attached to a main loop by passing mainloop=... to the constructor or calling dbus.set_default_main_loop(...)
Fix: import dbus.glib in dbus_manager.py
