Fabric不会安装某个库(setuptools)

时间:2013-04-18 16:23:46

标签: python setuptools fabric

我正在尝试使用Fabric在远程计算机上安装名为setuptools(0.6c11)的Python包。问题是setup.py-script告诉我它找不到安装所需的文件,但显然它应该在日志中。

这是日志:

[192.168.1.6] run: tar -xvf setuptools.tar.gz
[192.168.1.6] out: setuptools-0.6c11/
[192.168.1.6] out: setuptools-0.6c11/version.dat
[192.168.1.6] out: setuptools-0.6c11/README.txt
[192.168.1.6] out: setuptools-0.6c11/wikiup.cfg
[192.168.1.6] out: setuptools-0.6c11/pkg_resources.txt
[192.168.1.6] out: setuptools-0.6c11/EasyInstall.txt
[192.168.1.6] out: setuptools-0.6c11/api_tests.txt
[192.168.1.6] out: setuptools-0.6c11/setuptools.txt
[192.168.1.6] out: setuptools-0.6c11/ez_setup.py
[192.168.1.6] out: setuptools-0.6c11/tests/
[192.168.1.6] out: setuptools-0.6c11/tests/shlib_test/
[192.168.1.6] out: setuptools-0.6c11/tests/shlib_test/hellolib.c
[192.168.1.6] out: setuptools-0.6c11/tests/shlib_test/setup.py
[192.168.1.6] out: setuptools-0.6c11/tests/shlib_test/hello.c
[192.168.1.6] out: setuptools-0.6c11/tests/shlib_test/hello.pyx
[192.168.1.6] out: setuptools-0.6c11/tests/shlib_test/test_hello.py
[192.168.1.6] out: setuptools-0.6c11/setuptools.egg-info/
[192.168.1.6] out: setuptools-0.6c11/setuptools.egg-info/not-zip-safe
[192.168.1.6] out: setuptools-0.6c11/setuptools.egg-info/top_level.txt
[192.168.1.6] out: setuptools-0.6c11/setuptools.egg-info/SOURCES.txt
[192.168.1.6] out: setuptools-0.6c11/setuptools.egg-info/PKG-INFO
[192.168.1.6] out: setuptools-0.6c11/setuptools.egg-info/entry_points.txt
[192.168.1.6] out: setuptools-0.6c11/setuptools.egg-info/dependency_links.txt
[192.168.1.6] out: setuptools-0.6c11/virtual-python.py
[192.168.1.6] out: setuptools-0.6c11/pkg_resources.py
[192.168.1.6] out: setuptools-0.6c11/site.py
[192.168.1.6] out: setuptools-0.6c11/release.sh
[192.168.1.6] out: setuptools-0.6c11/setup.py
[192.168.1.6] out: setuptools-0.6c11/launcher.c
[192.168.1.6] out: setuptools-0.6c11/PKG-INFO
[192.168.1.6] out: setuptools-0.6c11/easy_install.py
[192.168.1.6] out: setuptools-0.6c11/setup.cfg
[192.168.1.6] out: setuptools-0.6c11/version
[192.168.1.6] out: setuptools-0.6c11/setuptools/
[192.168.1.6] out: setuptools-0.6c11/setuptools/extension.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/sandbox.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/depends.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/tests/
[192.168.1.6] out: setuptools-0.6c11/setuptools/tests/win_script_wrapper.txt
[192.168.1.6] out: setuptools-0.6c11/setuptools/tests/test_resources.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/tests/__init__.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/tests/test_packageindex.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/tests/doctest.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/__init__.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/archive_util.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/dist.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/cli.exe
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/build_ext.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/upload.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/bdist_wininst.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/egg_info.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/__init__.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/setopt.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/install_egg_info.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/bdist_egg.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/install.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/bdist_rpm.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/install_lib.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/saveopts.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/develop.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/easy_install.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/build_py.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/install_scripts.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/sdist.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/rotate.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/alias.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/register.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/command/test.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/package_index.py
[192.168.1.6] out: setuptools-0.6c11/setuptools/gui.exe

[192.168.1.6] run: chmod +x setuptools-0.6c11/setup.py
[192.168.1.6] run: ./setuptools-0.6c11/setup.py install
[192.168.1.6] out: Traceback (most recent call last):
[192.168.1.6] out:   File "./setuptools-0.6c11/setup.py", line 7, in <module>
[192.168.1.6] out:     execfile(convert_path('setuptools/command/__init__.py'), d)
[192.168.1.6] out: IOError: [Errno 2] No such file or directory: 'setuptools/command/__init__.py'


Fatal error: run() received nonzero return code 1 while executing!

Requested: ./setuptools-0.6c11/setup.py install
Executed: /bin/bash -l -c "./setuptools-0.6c11/setup.py install"

Aborting.
Disconnecting from 192.168.1.6... done.

正如您所看到的,setup.py脚本告诉我文件'setuptools / command / init .py'丢失了,因为来自tar的日志告诉我它已放在那里。是什么给了什么?

关于这一点最奇怪的部分是,如果我只是ssh到远程机器并手动运行命令,它的工作完全正常。但是,就我的目的而言,这并没有削减它。

也许问题是bash是从错误的目录还是什么工作的?我对此感到头疼。请帮忙!

编辑我也试过用“python setup.py install”运行脚本,但它给了我完全相同的错误。

0 个答案:

没有答案