【问题标题】:Having trouble installing buildslave on Windows 7在 Windows 7 上安装 buildslave 时遇到问题
【发布时间】:2014-09-08 01:30:20
【问题描述】:

我终于让pip install buildbot-slave 在 Win7 上工作(感谢本网站上的另一个答案),现在当我尝试通过以下方式创建构建从站时:

buildslave create-slave slavefolder blah.blah.com:9989 buildslave password

它会返回以下错误:

Traceback (most recent call last):
  File "C:\Python27\Scripts\buildslave", line 3, in <module>
    from buildslave.scripts import runner
  File "C:\Python27\lib\site-packages\buildslave\scripts\runner.py", line 22, in <module>
    from twisted.python import reflect
  File "C:\Python27\lib\site-packages\twisted\__init__.py", line 53, in <module>
_checkRequirements()
  File "C:\Python27\lib\site-packages\twisted\__init__.py", line 37, in _checkRequirements
    raise ImportError(required + ": no module named zope.interface.")
ImportError: Twisted requires zope.interface 3.6.0 or later: no module named zope.interface.

我的pip freeze:

Twisted==14.0.0
argparse==1.2.1
buildbot-slave==0.8.9
stevedore==0.15
virtualenv==1.9.1
virtualenv-clone==0.2.5
virtualenvwrapper==4.3.1
virtualenvwrapper-win==1.1.5
zope.interface==4.1.1

任何建议将不胜感激。

【问题讨论】:

  • 当您执行import zope.interface 时,python 提示符会发生什么? import zope呢?
  • 在 python 提示符下,import zope.interface 有效,import zope 也有效
  • 那么C:\Python27\Scripts\buildslave 的运行情况如何?它是同一个 Python 可执行文件吗?
  • 我使用的是 virtualenv。

标签: python twisted buildbot zope.interface


【解决方案1】:

尝试卸载zope.interface并使用命令重新安装3.6.0版本

pip uninstall zope.interface
pip install zope.interface==3.6.0

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 2017-01-15
    • 1970-01-01
    • 1970-01-01
    • 2014-12-03
    • 1970-01-01
    • 1970-01-01
    • 2013-04-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多