[openstack-dev] [all] [devstack] command tox with error in mitaka

zhaolihuisky zhaolihuisky at aliyun.com
Thu Apr 14 13:01:51 UTC 2016


------------------------------------------------------------------
>From:Ihar Hrachyshka <ihrachys at redhat.com>
>Send Time:2016 Apr 14 (Thu) 18:11
>To:zhaolihuisky <zhaolihuisky at aliyun.com>; OpenStack Development Mailing List (not for usage questions) <openstack-dev at lists.openstack.org>
>Subject:Re: [openstack-dev]  [all] [devstack] command tox with error in mitaka


>zhaolihuisky <zhaolihuisky at aliyun.com> wrote:

>> Hi everyone
>>
>> Install devstack by http://docs.openstack.org/developer/devstack/
>> Install tox by  
>> docs.openstack.org/project-team-guide/project-setup/python.html
>> command 'tox', the error log:
>>
>> pip-missing-reqs runtests: PYTHONHASHSEED='952003835'
>> pip-missing-reqs runtests: commands[0] | pip-missing-reqs -d  
>> --ignore-file=nova/tests/* --ignore-file=nova/test.py nova
>> Traceback (most recent call last):
>>   File ".tox/pip-missing-reqs/bin/pip-missing-reqs", line 7, in <module>
>>     from pip_missing_reqs.find_missing_reqs import main
>>   File "/opt/stack/nova/.tox/pip-missing-reqs/local/lib/python2.7/site-packages/pip_missing_reqs/find_missing_reqs.py", line 14, in <module>
>>     from pip.utils import get_installed_distributions, normalize_name
>> ImportError: cannot import name normalize_name
>> ERROR: InvocationError:  
>> '/opt/stack/nova/.tox/pip-missing-reqs/bin/pip-missing-reqs -d  
>> --ignore-file=nova/tests/* --ignore-file=nova/test.py nova
>> '____________________________________________________________________  
>> summary  
>> ____________________________________________________________________
>> ERROR:   py34: could not install deps  
>> [-r/opt/stack/nova/test-requirements.txt]; v =  
>> InvocationError('/opt/stack/nova/.tox/py34/bin/pip install -
>> chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt  
>> -r/opt/stack/nova/test-requirements.txt (see  
>> /opt/stack/nova/.tox/py34/log/py34-1.log)', 1)ERROR:   py27: commands  
>> failed
>>   functional: commands succeeded
>>   pep8: commands succeeded
>> ERROR:   pip-missing-reqs: commands failed
>>
>> Is there any suggestion?

>I think your pip is too old. Please upgrade it, f.e. by doing pip install  
>--user -U pip. [When using --user, make sure your .local/bin is in PATH].

>Ihar

thanks.

zhaolh at develop:~$ python --version
Python 2.7.6

zhaolh at develop:~$ pip --version
pip 8.1.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

zhaolh at develop:/opt/stack/nova$ pip install --user -U pip
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Su
bject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available
. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.  InsecurePlatformWarning
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages

The error was still exist.



More information about the OpenStack-dev mailing list