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

Lukas Hetzenecker lukas.hetzenecker at gmail.com
Mon Jan 23 09:56:26 PST 2012


Hello,
i just wanted to post a small status update:

I got dbus-python and the Qt mainloop integration working!
To get it working you need to compile the latest dbus library/daemon,
Qt 4.8 (needs to be recompiled, because the official release for
Window doesn't include QtDBus), dbus-python (patches to make it
compile with MSVC can be found in the KDE Windows repository) and
finally PyQt (the windows source doesn't include the dbus
subdirectory, it has to be copied from the X11 release; PyQt 4.9 is
the minimum requirement).

If you have any more questions feel free to ask me,
Lukas

2011/6/16 Lukas Hetzenecker <lukas.hetzenecker at gmail.com>:
> Hello,
>
> I've unfortunately not yet found a solution for other operating systems (but I
> also didn't investigate it much further). However, I'm still interested in
> porting my PyQt4/D-Bus - based application to Windows.
>
>> I know it is possible to run QT based on GLibMainLoop on Linux.
>> Unfortunelly I couldn't managed to do that.
>> I'm very interested in knowing how to do that or using some other Looping
>> solution for Dbus.
>
> Qt offers a native mainloop for D-Bus, so there is no need to use the mainloop
> from glib ( http://doc.qt.nokia.com/latest/qtdbus.html ).
>
> There are already some C++ applications that use this approch (KDE project)
> and it seems to work fine.
>
> So - in my opinion - the problem is in the PyQt bindings (the official
> documentation actually states that D-Bus support is only available for
> PyQt/X11). Maybe we should ask Phil Thompson, maintainer of PyQt4, if he has
> plans to support Windows too? The link to mailing list is
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
> Lukas
>
> Am Mittwoch, 15. Juni 2011, 22:18:20 schrieb Pascal Garcia:
>> Hello,
>> I have to port an application in python using dbus-python and qt to Windows.
>> Of course I have encountered difficulties as you had, I did not understand
>> everything that has been reported here, and obviously I need to learn
>> before I can find a solution.
>> Have corrections been proposed ? Is there any how-to to follow to have dbus
>> python and qt running on windows.
>> Thank you very much,
>> Regards
>> Pascal Garcia
>>
>>
>>
>>
>> _______________________________________________
>> dbus mailing list
>> dbus at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dbus
>


More information about the dbus mailing list