Reputation: 11733
Some version, first:
mac osx version:
$ system_profiler SPSoftwareDataType
Software:
System Software Overview:
System Version: OS X 10.8.5 (12F45)
Kernel Version: Darwin 12.5.0
Boot Volume: Macintosh HD
Boot Mode: Normal
python:
$ python
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
zope:
>>> import zope
>>> zope.__path__
['/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/zope', '/Library/Python/2.7/site-packages/zope.interface-4.1.1-py2.7-macosx-10.8-intel.egg/zope']
So.. Max 1.8.5 with python 2.7 and zope 4.1
then.. the problem:
>>> import twisted
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/twisted/__init__.py", line 53, in <module>
_checkRequirements()
File "/Library/Python/2.7/site-packages/twisted/__init__.py", line 51, in _checkRequirements
raise ImportError(required + ".")
ImportError: Twisted requires zope.interface 3.6.0 or later.
For sure I have messed up something with sudo
executing python setup.py install, easy_install, pip, and other but.. the question is:
How to install an updated version of twisted?
Upvotes: 2
Views: 4036
Reputation: 31860
OS X 10.8 comes with Zope Interface 3.5.1. However, when you installed Twisted into /Library
, you didn't install a newer importable version of Zope Interface at the same time.
Delete the version of Twisted you've installed. OS X 10.8 already comes with Twisted 12.0, which may be good enough for what you're doing. If you need a newer version, install it into a virtualenv and work with it there. https://pip2014.com/ can get you started with the requisite tooling to do this without screwing up your system with sudo
;-)
Upvotes: 1