[Twisted-Python] win32eventreactor problems
Justin Johnson
justinjohnson at fastmail.fm
Wed Aug 13 13:32:10 MDT 2003
Once more *with* attached file.
On Wed, 13 Aug 2003 13:21:08 -0600, "Justin Johnson"
<justinjohnson at fastmail.fm> said:
> 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:
>
> ---
> Traceback (most recent call last):
> File "E:\ccase\python\uhg\uht\process.py", line 13, in ?
> win32eventreactor.install()
> File
> "E:\Python22\Lib\site-packages\twisted\internet\win32eventreactor.py",
> li
> ne 228, in install
> main.installReactor(r)
> File "E:\Python22\Lib\site-packages\twisted\internet\main.py", line 90,
> in ins
> tallReactor
> assert not sys.modules.has_key('twisted.internet.reactor'), \
> AssertionError: reactor already installed
> ---
>
> If I comment out the line win32eventreactor.install(), I get the
> following error.
>
> ---
> Traceback (most recent call last):
> File "E:\ccase\python\uhg\uht\process.py", line 60, in ?
> d = openProcess(["cleartool", "lsvob", "-s"])
> File "E:\ccase\python\uhg\uht\process.py", line 55, in openProcess
> reactor.spawnProcess(proto, cmd, cmd_and_args, env=os.environ)
> File "E:\Python22\Lib\site-packages\twisted\internet\default.py", line
> 168, in
> spawnProcess
> raise NotImplementedError, "process only available in this reactor on
> POSIX"
>
> NotImplementedError: process only available in this reactor on POSIX
> ---
>
> As far as I can tell, none of my modules I import are trying to import
> and install win32eventreactor.
>
> I'm running Twisted 1.0.7alpha4. with Python 2.2.
> Anyone know what I'm doing wrong? I realize the win32 reactor needs to
> be rewritten. Just trying to make due with what is there now.
>
> Thanks.
> -Justin
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-------------- next part --------------
A non-text attachment was scrubbed...
Name: process.py
Type: application/unknown
Size: 1844 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030813/78d41915/attachment-0002.bin>
More information about the Twisted-Python
mailing list