Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使git或pip引导程序没有错误?_Git_Pip_Bootstrapper - Fatal编程技术网

如何使git或pip引导程序没有错误?

如何使git或pip引导程序没有错误?,git,pip,bootstrapper,Git,Pip,Bootstrapper,当我试图从bootstrapper.txt安装时 $ pip install -r bootstrapper.txt 然后我有以下带有错误的回溯: Downloading/unpacking python-keystoneclient==0.1.1 (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 49)) Downloading python-keyston

当我试图从bootstrapper.txt安装时

$ pip install -r bootstrapper.txt
然后我有以下带有错误的回溯:

Downloading/unpacking python-keystoneclient==0.1.1 (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 49))
    Downloading python-keystoneclient-0.1.1.tar.gz (54Kb): 54Kb downloaded
    Running setup.py egg_info for package python-keystoneclient

    warning: no files found matching 'python-keystoneclient'
Downloading/unpacking kazoo==0.2 (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 50))
    Downloading kazoo-0.2.tar.gz (46Kb): 46Kb downloaded
    Running setup.py egg_info for package kazoo

    warning: no previously-included files matching '*pyc' found anywhere in distribution
    warning: no previously-included files matching '*pyo' found anywhere in distribution
Downloading/unpacking Sphinx==1.1.3 (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 53))
    Downloading Sphinx-1.1.3.tar.gz (2.6Mb): 2.6Mb downloaded
    Running setup.py egg_info for package Sphinx

    no previously-included directories found matching 'doc/_build'
Obtaining pylib from git+ssh://git@git.ged.ru/pylib.git@a1f66e8dc124165e89fc76dd6f2bf86ccd0527e7#egg=pylib-dev (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 56))
    Cloning ssh://git@git.ged.ru/pylib.git (to a1f66e8dc124165e89fc76dd6f2bf86ccd0527e7) to ./src/pylib
    Complete output from command /usr/bin/git rev-parse origin/HEAD:
fatal: ambiguous argument 'origin/HEAD': unknown revision or path not in the working tree.

Use '--' to separate paths from revisions

origin/HEAD

----------------------------------------
Command /usr/bin/git rev-parse origin/HEAD failed with error code 128
Storing complete log in /home/ks/.pip/pip.log
-这是回溯(从/home/ks/.pip/pip.log)

我的pip版本是:

pip 1.0.2 from /home/ks/python/ged/converters/prosto/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg (python 2.7)
UPD:

所以,在我将其更新为1.1之后,它会犯同样的错误


我应该怎么做才能解决这个问题?

您对color.ui的git配置设置是什么

git config——获取color.ui

我的设置为“始终”,我得到了同样的错误

当我把它改为“真”时

git config——global color.ui true

在我的案例中修复了这个错误


听起来您已经解决了这个问题,但是对于可能遇到这个错误的其他人来说,我在尝试在特定的提交头上安装远程git包时遇到了同样的版本解析问题

我在运行PIP1.2.1


当我将pip更新到最新版本(现在是1.5.6)时,git rev解析错误消失了。

您的
git
版本是什么?(使用
/usr/bin/git--version
查看)1.1我记得-我现在不在工作机器上。也许这就是问题所在。请更新您的git版本并返回更多信息。(Git1.1大约7年前发布:)这个想法很有趣,谢谢。可能是。所以我应该从repo安装,而不是通过apt-get-install安装(因为-这个变体大约是1.1版本)。当我将这个版本更改为最新版本时,我解决了这个问题。=)