A dbus.mainloop.NativeMainLoop instance is required [Was: Re: dbus-python: support for Windows and OS X]

Pavel Strashkin pavel.strashkin at gmail.com
Wed Feb 2 10:57:59 PST 2011


GLib works fine to me, but it makes me sad too. I don't understand why
there is no native main loop and i must build and use GLib. Any ideas
how can we improve it? Does it make sence to put main loop impl inside
libdbus and expose it via bindings? I would to decrease number of
dependencies like a glib...

2011/2/2 Simon McVittie <simon.mcvittie at collabora.co.uk>:
> 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
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>


More information about the dbus mailing list