[PyQt] PyQt4 dbus mainloop assertion error

Phil Thompson phil at riverbankcomputing.co.uk
Wed Apr 25 16:12:54 BST 2007


On Wednesday 25 April 2007 3:44 pm, Ingmar Steen wrote:
> Hi,
>
> I'm trying to use the new PyQt4 dbus mainloop, but it crashes with an
> assertion error when I try to get an object from the bus. I'm using Sip
> 4.6, PyQt4.2, Qt 4.2.3, Python 2.5.1, DBus 1.0.2 and dbus-python 0.80.1. Am
> I doing something fundamentally insane or wrong?
>
> If I remove the QDBusQtMainLoop(set_as_default=True) line, it works just
> fine. The assertion also happens if app.exec_() and get the bus object from
> a QTimer event.
>
> Anybody got any ideas?

You could try a later version of dbus-python.

Can you produce a glib version? It that does the same then at least it's not a 
PyQt problem.

Phil


More information about the PyQt mailing list