2012-08-17 60 views
1

當我試圖從bootstrapper.txt我怎樣才能讓混帳或PIP引導沒有錯誤?

$ 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://[email protected]/[email protected]#egg=pylib-dev (from -r http://git.ged.ru/ged-thrift-server.git/blob_plain/HEAD:/requirements.txt (line 56)) 
    Cloning ssh://[email protected]/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 

http://dumpz.org/246888/ - 這是回溯(從/home/ks/.pip /pip.log)。

我的點子的版本是:

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 - 這是犯同樣的錯誤..

我應該做的解決這個?

+0

什麼是你'git'版本? (使用'在/ usr/bin中/混帳--version'看看) – 2012-09-04 00:06:18

+0

1.1我記得 - 我不是現在的工作機器。 – 2012-09-05 07:51:05

+0

也許這就是問題所在。更新你的git版本,請回來更多信息。 (GIT 1.1發佈大約7年前:https://github.com/git/git/tags?after=v1.4.2-rc3&curr=v1.5.6.6) – 2012-09-05 13:32:56

回答

2

你是什麼混帳配置設置爲color.ui?

git config --get color.ui

煤礦被設置爲「總是」,我得到了同樣的錯誤。

當我把它改成「真」,

git config --global color.ui true

,在我的情況下,解決了這個錯誤。

http://git-scm.com/book/en/Customizing-Git-Git-Configuration#Colors-in-Git

+0

當我將這個版本更改爲最新版本時,我解決了這個問題。 =) – 2013-03-21 10:59:42

1

這聽起來像你已經得到了這個工作,但是對於其他人在那裏誰可能會遇到這個錯誤,我已經當我試圖點子安裝一個遠程的git包此相同的REV-解析問題在一個具體的承諾頭上。

我跑PIP 1.2.1。

當我更新點到最新版本(在這一點上,它是1.5.6),那個git rev-parse錯誤消失了。