Unable to install twisted package on Windows machine

I have python2.6 installed on my windows machine.

tried to install a twisted package, but could not install it.

Also installed zope interface

In the python interpreter, I get an error like:

>>>import twisted >>>Import Error: No Module named twisted 

I have successfully installed a twisted package.

 C:\Documents and Settings\tazim_kolhar>python Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> import twisted >>> ^Z 

But when I try to run the script containing the package:

 C:\Documents and Settings\tazim_kolhar>cd .. C:\Documents and Settings>cd .. C:\>cd Python_scripts C:\Python_scripts>python aimbot.py aimbot.py:10: DeprecationWarning: twisted.words.protocols.toc is deprecated sinc e Twisted 9.0. Use twisted.words.protocols.oscar instead. from twisted.words.protocols import toc Traceback (most recent call last): File "aimbot.py", line 10, in <module> from twisted.words.protocols import toc File "C:\Python26\Lib\site-packages\twisted\words\protocols\toc.py", line 27, in <module> from twisted.internet import reactor, protocol File "C:\Python26\Lib\site-packages\twisted\internet\reactor.py", line 37, in <module> from twisted.internet import selectreactor File "C:\Python26\Lib\site-packages\twisted\internet\selectreactor.py", line 1 7, in <module> from zope.interface import implements ImportError: No module named zope.interface C:\Python_scripts> 

I disabled the zope interface. But the document http://twistedmatrix.com/trac/wiki/WindowsBuilds does not provide a clear explanation of the zope interface.

How to install this zope interface?

Any help would be helpful.

Thanks, Tazim.

+7
python windows twisted
source share
3 answers

The steps for installing the package are as follows:

+19
source share

The documentation for creating Twisted on Windows is here . Follow this and you should not run into any problem.

Since the import fails, it is obvious that something is wrong, so you should follow the instructions in the manual above.

+1
source share

I just installed Twisted-12.3.0 using the .msi download.

For the zope interface, I extracted the archive (zope.interface-4.0.3-py2.7-win32.egg) and moved the extracted zope directory to the python / lib directory.

I received a usage message when running trial.py in the command window.

(I thought I saw some kind of problem with 64-bit windows and setuptools ????)

0
source share

All Articles