Search code examples
djangomacospiptwistedzope

Django error for Tiwsted: Twisted requires zope.interface 3.6.0


In Django (on Mac 10.9), I installed Scrapy in a virtualenv using:

pip install Scrapy

But Django fails with:

Type: ImportError Exception Value: Twisted requires zope.interface 3.6.0 or later: no module named zope.interface

I've tried reinstalling Twsited and zope pip says requirement is satisfied. Does any one have a solution?

Admittedly I am pretty new to pip, virtualenv and even developing on a Mac so no answer is under appreciated!

Thank you!


Solution

  • First - I do not understand the meaning of your last sentence ("Admittedly I am pretty know to pip, virtualenv and even developing on a Mac so no answer is under appreciated!") I guess my english is insufficient.

    I don't know Twisted, nor Django, but...

    This could be a missing dependency of Twisted.

    Or more likely, you have a too old version of setuptools installed (Which has problems with the dependency resolution.)

    So you could try:

    • Update setuptools to a recent version (pip install -U setuptools).
    • Manually install zope.interface >= 3.6.0 (pip install zope.interface==3.6.0) - As @shuttle87 mentioned, you have to do this before installing Scrapy