This borders on stackoverflow/superuser, but I guess it's a simple installation problem.
I've installed python-twisted on my ubuntu 10.04 server, but it can't be found.
This is what I get when I try to import something:
>>> from twisted.internet import reactor
Traceback (most recent call last):
File "", line 1, in
File "twisted.py", line 1, in
from twisted.internet import reactor
ImportError: No module named internet
I've installed the package through apt-get.
That way the module is installed in this folder: /usr/lib/python2.6/dist-packages/twisted
with an __init__.py file.
When I try to use python setup.py install (on the download from the site) it installs it to /usr/local/lib/python2.6/dist-packages/twisted, but it also does not find it there.
Does anyone know where it went wrong? Google isn't spilling anything.
import twistedwork? – David Pearce Jul 10 '10 at 1:14apt-get,easy_install,setup.py install? – fideli Jul 10 '10 at 1:29/usr/lib/python2.6/dist-packages/twisteddirectory, with a init.py file in it. So that should work! To test it out, I removed it and installed it throughpython setup.py installbut it installed it into/usr/local/lib/python2.6/dist-packages/twisted– skerit Jul 10 '10 at 11:49