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

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

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



On 11:44 am, 421174...@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@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to