1

当我在 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包吗?

提前致谢。

4

1 回答 1

1

我找到了答案,这是织物的一个小虫子。我根据文章解决它:http: //atbrox.com/tag/fabric/

于 2010-07-28T10:42:01.443 回答