cygwin-1.75 中的 python win32api
当我在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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了答案,这是布料上的一个小虫子。我按照文章解决:
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/