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

Lukas Hetzenecker lukas.hetzenecker at gmail.com
Wed Feb 2 11:58:39 PST 2011


No, I couldn't try the GLib main loop, because the code to build this module 
is commented out in the CMakeList file of KDE-Windows  (there are comments 
like "glib isn't ported yet").

I could not even find the required header "dbus-glib.h" (it wasn't installed 
by the glib package).

Am Mittwoch, 2. Februar 2011, 18:50:41 schrieb Simon McVittie:
> 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