cygwin-1.75 中的 python win32api

发布于 2024-09-12 10:22:46 字数 1177 浏览 3 评论 0原文

当我在cygwin中运行fabric-0.9.1时,出现以下错误:

$ fab test.py
Traceback (most recent call last):
  File "/usr/bin/fab", line 8, in <module>
    load_entry_point('Fabric==0.9.1', 'console_scripts', 'fab')()
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 318, in load_entry_point
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2221, in load_entry_point
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1954, in load
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/main.py", line 17, in <module>
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/api.py", line 9, in <module>
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/context_managers.py", line 12, in <module>
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/state.py", line 125, in <module>
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/state.py", line 74, in _get_system_username
ImportError: No module named win32api

我的环境是windows xp+cygwin1.75+Python 2.6.5+fabric-0.9.1。

我应该为 cygwin 安装 python win32 包吗?

提前致谢。

when i run fabric-0.9.1 in cygwin, it say following error:

$ fab test.py
Traceback (most recent call last):
  File "/usr/bin/fab", line 8, in <module>
    load_entry_point('Fabric==0.9.1', 'console_scripts', 'fab')()
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 318, in load_entry_point
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2221, in load_entry_point
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1954, in load
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/main.py", line 17, in <module>
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/api.py", line 9, in <module>
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/context_managers.py", line 12, in <module>
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/state.py", line 125, in <module>
  File "build/bdist.cygwin-1.7.5-i686/egg/fabric/state.py", line 74, in _get_system_username
ImportError: No module named win32api

My environment is windows xp+cygwin1.75+Python 2.6.5+fabric-0.9.1.

should I install python win32 package for cygwin?

Thanks in advance.

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

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

发布评论

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

评论(1

爱格式化 2024-09-19 10:22:46

我找到了答案,这是布料上的一个小虫子。我按照文章解决:
http://atbrox.com/tag/fabric/

i find the answer, it is a small bug of fabric. i solve it according the article:
http://atbrox.com/tag/fabric/

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