Just fixed it guys. Forgot to install python-dev first. ^_^<br><br><br><div><span class="gmail_quote">On 9/10/07, <b class="gmail_sendername">Alvin Delagon</b> &lt;<a href="mailto:adelagon@gmail.com">adelagon@gmail.com</a>
&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello guys,<br><br>I have to install Twisted 2.50 on our Ubuntu Dapper servers. The problem is that I have to use the Twisted 
2.50 tarball since Dapper apt repositories only have Twisted 2.40. The installation went smoothly and my twisted applications works except that when I try to run my scripts using the epoll reactor (twistd -ny ./myscript -r epoll) I get this error.
<br><br>Traceback (most recent call last):<br>&nbsp; File &quot;/usr/bin/twistd&quot;, line 21, in ?<br>&nbsp;&nbsp;&nbsp; run()<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/scripts/twistd.py&quot;, line 27, in run<br>&nbsp;&nbsp;&nbsp; app.run

(runApp, ServerOptions)<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/application/app.py&quot;, line 374, in run<br>&nbsp;&nbsp;&nbsp; config.parseOptions()<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/application/app.py&quot;, line 354, in parseOptions
<br>&nbsp;&nbsp;&nbsp; usage.Options.parseOptions(self, options)<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/python/usage.py&quot;, line 177, in parseOptions<br>&nbsp;&nbsp;&nbsp; self.__dispatch[optMangled](optMangled, arg)<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/python/usage.py&quot;, line 333, in &lt;lambda&gt;
<br>&nbsp;&nbsp;&nbsp; fn = lambda name, value, m=method: m(value)<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/application/app.py&quot;, line 276, in opt_reactor<br>&nbsp;&nbsp;&nbsp; installReactor(shortName)<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/application/reactors.py&quot;, line 80, in installReactor
<br>&nbsp;&nbsp;&nbsp; installer.install()<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/application/reactors.py&quot;, line 60, in install<br>&nbsp;&nbsp;&nbsp; namedAny(self.moduleName).install()<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/python/reflect.py&quot;, line 357, in namedAny
<br>&nbsp;&nbsp;&nbsp; topLevelPackage = __import__(trialname)<br>&nbsp; File &quot;/usr/lib/python2.4/site-packages/twisted/internet/epollreactor.py&quot;, line 22, in ?<br>&nbsp;&nbsp;&nbsp; from twisted.python import _epoll<br>ImportError: cannot import name _epoll
<br><br><br>On my workstation (LinuxMint 3.0), the epoll reactor works fine. The difference is that I installed Twisted via apt-get. Thanks in advance for anyone who can point me to the right way.<br><br>---<br><span class="sg">
Alvin Delagon
<br> 
</span></blockquote></div><br>