[Twisted-Python] Problems using win32eventreactor()

Itamar Shtull-Trauring twisted at itamarst.org
Mon Feb 10 23:54:15 EST 2003

On Mon, 10 Feb 2003 21:01:42 -0500
"Jeff Grimmett" <grimmtooth at softhome.net> wrote:

> This generates an error message at the win32eventreactor.install()
> line:
>     assert not sys.modules.has_key('twisted.internet.reactor'), \
> AssertionError: reactor already installed
> What am I missing?

win32eventreactor.install() should be the *first* thing in your module
or app. It has to be run before any other code is, or someone might
"from twisted.internet import reactor", which installs the default

Itamar Shtull-Trauring    http://itamarst.org/
Available for Python, Twisted, Zope and Java consulting
***> http://VoteNoWar.org -- vote/donate/volunteer <***

More information about the Twisted-Python mailing list