[Twisted-Python] win32eventreactor problems

Christopher Armstrong radix at twistedmatrix.com
Wed Aug 13 12:29:31 MDT 2003


On Wed, Aug 13, 2003 at 01:21:08PM -0600, Justin Johnson wrote:
> I had the win32eventreactor working a while back, but now I have a
> problem and I'm not sure what's going on.  The attached file installs
> win32eventreactor as follows:
> 
> ---
> if not config.isUnix:
> 	from twisted.internet import win32eventreactor
> 	win32eventreactor.install()
> ---
> 
> When I run this I get the following error:
> 
> ---
> AssertionError: reactor already installed
> ---

Somewhere, "from twisted.internet import reactor" is happening before
you install the win32eventreactor. The non-default reactors must be
installed before any imports of twisted.internet.reactor.

-- 
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/




More information about the Twisted-Python mailing list