导入错误:无法导入名称输出

发布于 2024-09-06 00:20:06 字数 1111 浏览 2 评论 0原文

我在 Windows 上使用 Fabric 0.9.1 版本来执行一些与部署相关的操作。

但是当我即将运行“fab hello”时,我面临以下错误

D:\pythonscripts>fab hello
Traceback (most recent call last):
  File "C:\Python26\Scripts\fab-script.py", line 8, in <module>
    load_entry_point('fabric==0.9.1', 'console_scripts', 'fab')()
  File "build\bdist.win-amd64\egg\pkg_resources.py", line 318, in load_entry_poi
nt
  File "build\bdist.win-amd64\egg\pkg_resources.py", line 2221, in load_entry_po
int
  File "build\bdist.win-amd64\egg\pkg_resources.py", line 1954, in load
  File "build\bdist.win-amd64\egg\fabric\main.py", line 17, in <module>
  File "build\bdist.win-amd64\egg\fabric\api.py", line 9, in <module>
  File "build\bdist.win-amd64\egg\fabric\context_managers.py", line 12, in <modu
le>
  File "build\bdist.win-amd64\egg\fabric\state.py", line 9, in <module>
  File "build\bdist.win-amd64\egg\fabric\network.py", line 19, in <module>
  File "build\bdist.win-amd64\egg\fabric\utils.py", line 21, in abort
ImportError: cannot import name output

有关如何解决此错误的任何线索吗?

iam using fabric 0.9.1 version on windows to do some deployment related stuff.

But the moment iam about to run "fab hello" iam facing the following error

D:\pythonscripts>fab hello
Traceback (most recent call last):
  File "C:\Python26\Scripts\fab-script.py", line 8, in <module>
    load_entry_point('fabric==0.9.1', 'console_scripts', 'fab')()
  File "build\bdist.win-amd64\egg\pkg_resources.py", line 318, in load_entry_poi
nt
  File "build\bdist.win-amd64\egg\pkg_resources.py", line 2221, in load_entry_po
int
  File "build\bdist.win-amd64\egg\pkg_resources.py", line 1954, in load
  File "build\bdist.win-amd64\egg\fabric\main.py", line 17, in <module>
  File "build\bdist.win-amd64\egg\fabric\api.py", line 9, in <module>
  File "build\bdist.win-amd64\egg\fabric\context_managers.py", line 12, in <modu
le>
  File "build\bdist.win-amd64\egg\fabric\state.py", line 9, in <module>
  File "build\bdist.win-amd64\egg\fabric\network.py", line 19, in <module>
  File "build\bdist.win-amd64\egg\fabric\utils.py", line 21, in abort
ImportError: cannot import name output

Any clue on how to resolve this error?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哽咽笑 2024-09-13 00:20:06

It seems to be this issue: http://code.fabfile.org/issues/show/194, probably it's not Fabric related but PyCrypto or Python64. If it is PyCrypto then the easiest thing is to download a binary version from http://www.voidspace.org.uk/python/modules.shtml#pycrypto and install it and download pywin32 from http://sourceforge.net/projects/pywin32/files/ and install it as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文