A dbus.mainloop.NativeMainLoop instance is required [Was: Re: dbus-python: support for Windows and OS X]
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Feb 2 10:50:41 PST 2011
On Wed, 02 Feb 2011 at 19:16:41 +0100, Lukas Hetzenecker wrote:
> I was able to compile dbus and dbus-python on Windows without any problems,
> but now I get strange error messages when I try to create a D-Bus service:
> >>> dbus.set_default_main_loop(mainloop)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: A dbus.mainloop.NativeMainLoop instance is required
Have you tried using the GLib main loop? dbus-python has GLib main loop
integration in-tree, whereas the Qt main loop integration is a separate
project, so perhaps seeing whether the GLib main loop works would help point
to what the problem is.
Simon
More information about the dbus
mailing list