[Twisted-Python] How can I make twisted and dbus work together?

Phil Mayers p.mayers at imperial.ac.uk
Tue Jan 22 06:37:53 EST 2008

> Grepping the Twisted code suggests this is a "problem" that is not
> really worth trying to fix fully. It's probably best to just avoid the
> problem by making sure you get to install your choice of reactor before
> anything else.

When I ran into this issue and asked, that is what I was told.

i.e. in real terms this means:


from twisted.internet import glib2reactor

# only then start importing things
from twisted.internet import defer
from twisted.python import utils

# ...etc

> Of course, if you use the twistd daemon installing a specific reactor at
> the correct time is easy, by using the --reactor flag.

More information about the Twisted-Python mailing list