2016-02-19 28 views
5

Đây là những gì tôi đã làm:Làm thế nào để giải quyết lỗi này khi cài đặt devstack kg trên ubuntu

1) nhân bản vô tính devstack kg bằng cách sử dụng lệnh:

git clone https://github.com/openstack-dev/devstack.git -b ổn định/kg

2) cd devstack

3) ./stack.sh

tôi nhận được lỗi sau khi cài đặt devstack kg trên ubuntu.

You are using pip version 7.1.2, however version 8.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 
+ local 'test_req=testtools>=0.9.36,!=1.2.0,<2.0.0/test-requirements.txt' 
+ [[ -e testtools>=0.9.36,!=1.2.0,<2.0.0/test-requirements.txt ]] 
+ pip_install_gr os-testr 
+ local name=os-testr 
++ get_from_global_requirements os-testr 
++ local package=os-testr 
+++ grep -i -h '^os-testr' /opt/stack/requirements/global-requirements.txt 
+++ cut -d# -f1 grep: /opt/stack/requirements/global-requirements.txt: No such file or directory 
++ local required_pkg= 
++ [[ '' == '' ]] 
++ die 142 'Can'\''t find package os-testr in requirements' 
++ local exitcode=0 
++ set +o xtrace [ERROR] /home/nikhil/devstack/inc/python:142 Can't find package os-testr in requirements 
+ local 'clean_name=[Call Trace] ./stack.sh:715:pip_install_gr /home/nikhil/devstack/inc/python:63:get_from_global_requirements /home/nikhil/devstack/inc/python:142:die' 
+ pip_install '[Call' 'Trace]' ./stack.sh:715:pip_install_gr /home/nikhil/devstack/inc/python:63:get_from_global_requirements /home/nikhil/devstack/inc/python:142:die 
++ set +o 
++ grep xtrace 
+ local 'xtrace=set -o xtrace' 
+ set +o xtrace 
+ sudo -H http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS=file:///opt/stack/.wheelhouse /usr/local/bin/pip install '[Call' 'Trace]' ./stack.sh:715:pip_install_gr /home/nikhil/devstack/inc/python:63:get_from_global_requirements /home/nikhil/devstack/inc/python:142:die Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 211, in main 
    status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 282, in run 
    wheel_cache File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 272, in populate_requirement_set 
    wheel_cache=wheel_cache File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 213, in from_line 
    wheel_cache=wheel_cache, constraint=constraint) File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 67, in __init__ 
    req = pkg_resources.Requirement.parse(req) File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2980, in parse 
    reqs = list(parse_requirements(s)) File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources/__init__.py", line 2911, in parse_requirements 
    raise RequirementParseError("Missing distribution spec", line) RequirementParseError: Missing distribution spec [Call You are using pip version 7.1.2, however version 8.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 
+ exit_trap 
+ local r=2 
++ jobs -p 
+ jobs= 
+ [[ -n '' ]] 
+ kill_spinner 
+ '[' '!' -z '' ']' 
+ [[ 2 -ne 0 ]] 
+ echo 'Error on exit' Error on exit 
+ generate-subunit 1455806136 50 fail ./stack.sh: line 463: generate-subunit: command not found 

Dưới đây là ảnh chụp màn hình:

devstack installation error

Tôi nghĩ rằng lỗi là do gói python. Tôi cập nhật python và thử lại nhưng không có kết quả.

Lỗi là gì và tôi có thể giải quyết nó như thế nào?

Trả lời

3

này đã làm việc cho tôi.

sudo apt-get install python-pip 

sudo pip install --upgrade pip 

Có vẻ như tôi đã cài đặt và nâng cấp trăn.

Tôi nhớ đã thử cách này trước nhưng nó không hoạt động. Tôi không biết tại sao, nhưng bây giờ nó đã hoạt động.

Sẽ rất hữu ích nếu bất kỳ ai cũng có thể nêu lý do đằng sau lỗi và phân định giải pháp.

1

Bạn đã thử cái này chưa?

sudo pip install -U os-testr 

Nguồn: https://ask.openstack.org/en/question/88189/open-stack-installation-i-got-an-error/?answer=88228#post-id-88228

+1

Không, tôi đã không cố gắng mà trước đó. Tôi đã chạy nó hôm nay, nhưng nó đã cho tôi một lỗi. Sau khi tôi quản lý để cài đặt thành công (xem câu trả lời của tôi), lệnh của bạn chạy tốt, nhưng tôi dừng nó ở giữa vì tôi đã đạt được mục đích của mình. Cảm ơn sự đóng góp của bạn. :) – Nikhil

4

Trong dòng lệnh của bạn:

sudo apt-get install python-pip 
sudo pip install --upgrade pip 
sudo pip install -U os-testr 

này làm việc tốt cho tôi ...

Các vấn đề liên quan