[Twisted-Python] 回复: exceptions.ImportError: cannot import name_epoll
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Mon Mar 2 05:46:33 MST 2015
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
More information about the Twisted-Python
mailing list