[Twisted-Python] 回复: 回复: exceptions.ImportError: cannot import name_epoll

8 421174439 at qq.com
Mon Mar 2 05:55:03 MST 2015


maybe you are right.
but cygwin is a linux environment on windows.


thanks
------------------ 原始邮件 ------------------
发件人: "exarkun";<exarkun at twistedmatrix.com>;
发送时间: 2015年3月2日(星期一) 晚上8:46
收件人: "Twisted general discussion"<twisted-python at twistedmatrix.com>; 

主题: Re: [Twisted-Python]回复:  exceptions.ImportError: cannot import name_epoll



On 11:44 am, 421174439 at qq.com wrote:
>I use cygwin in Windows Vista.
>>I install twisted using tool setup-x86.exe which is suggested by 
>cygwin.‍

epoll is a Linux-only feature.  twisted.internet.epollreactor is only 
usable on Linux.  You should probably remove the explicit reactor 
selection from the code you're trying to run.  Twisted will make a 
reasonable guess about what reactor is best to use on the platform you 
happen to be using if you just import twisted.internet.reactor.  Failing 
that, twistd has command-line arguments to allow the user to make an 
explicit reactor selection.

Jean-Paul

_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20150302/a67a1a7a/attachment-0002.html>


More information about the Twisted-Python mailing list