当运行"sudo ./mining_proxy.py“时,整个返回是:
Traceback (most recent call last):
File "./mining_proxy.py", line 67, in <module>
from twisted.internet import reactor, defer
File "/Library/Python/2.7/site-packages/Twisted-13.2.0-py2.7-macosx-10.8-intel.egg/twisted/__init__.py", line 53, in <module>
_checkRequirements()
File "/Library/Python/2.7/site-packages/Twisted-13.2.0-py2.7-macosx-10.8-intel.egg/twisted/__init__.py", line 51, in _checkRequirements
raise ImportError(required + ".")
ImportError: Twisted requires zope.interface 3.6.0 or later.这使我相信没有安装zope.interface。所以我试着安装它:
sudo easy_install zope.interface
Searching for zope.interface
Best match: zope.interface 4.1.1
Processing zope.interface-4.1.1-py2.7-macosx-10.8-intel.egg
zope.interface 4.1.1 is already the active version in easy-install.pth
Using /Library/Python/2.7/site-packages/zope.interface-4.1.1-py2.7-macosx-10.8-intel.egg
Processing dependencies for zope.interface
Finished processing dependencies for zope.interface我还找到了这个职位,它说您基本上需要在文件夹中放置一个init.py。所以我想:
sudo touch /usr/local/lib/python2.7/site-packages/zope.interface-4.1.1/__init__.py我试图再次运行挖掘代理,同样的错误。请帮帮忙。
发布于 2014-08-02 19:10:45
我也犯了同样的错误。
在搜索了一下之后,我发现触觉应该在另一个地方:
sudo touch /usr/local/lib/python2.7/site-packages/zope/__init__.py但是它没有起作用。
我只是用virtualenv修复了它
这里的步骤:
pip install virtualenv virtualenvwrapper
mkvirtual stratum-proxy
pip install https://github.com/slush0/stratum-mining-proxy.git
pip install zope2在虚拟层中的这些步骤之后,代理成功地工作了。希望它能帮上忙
https://stackoverflow.com/questions/22959660
复制相似问题