Comment 5 for bug 1383370

Revision history for this message
Abbas Ali Zaidi (abbasalizaidi1990) wrote :

I am installing devstack on CentOS 7 and facing the same issue as above. The script is uninstalling pip and right after that trying to use it.

Please refer to the trace below:

+ sudo yum remove -y python-pip
Loaded plugins: fastestmirror, langpacks
No Match for argument: python-pip
No Packages marked for removal
+ install_get_pip
+ [[ -r /opt/stack/devstack/files/get-pip.py ]]
+ head -1 /opt/stack/devstack/files/get-pip.py
+ grep -q '#!/usr/bin/env python'
+ [[ ! -r /opt/stack/devstack/files/get-pip.py ]]
+ [[ -r /opt/stack/devstack/files/get-pip.py.downloaded ]]
+ local timecond=
+ [[ -r /opt/stack/devstack/files/get-pip.py ]]
+ timecond='-z /opt/stack/devstack/files/get-pip.py'
+ curl -f --retry 6 --retry-delay 5 -z /opt/stack/devstack/files/get-pip.py -o /opt/stack/devstack/files/get-pip.py https://bootstrap.pypa.io/get-pip.py
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
+ touch /opt/stack/devstack/files/get-pip.py.downloaded
+ sudo -H -E python /opt/stack/devstack/files/get-pip.py
/tmp/tmpXE7xck/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: 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.
Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages
+ [[ -n '' ]]
+ pip_install -U setuptools
+ local xtrace
++ set +o
++ grep xtrace
+ xtrace='set -o xtrace'
+ set +o xtrace
which: no pip in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/stack/.local/bin:/opt/stack/bin:/usr/local/sbin:/usr/sbin:/sbin)
which: no pip-python in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/stack/.local/bin:/opt/stack/bin:/usr/local/sbin:/usr/sbin:/sbin)
[ERROR] /opt/stack/devstack/inc/python:34 Unable to find pip; cannot continue
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named pip
[Call Trace]
/opt/stack/devstack/tools/install_pip.sh:121:pip_install
/opt/stack/devstack/inc/python:115:die
[ERROR] /opt/stack/devstack/inc/python:115 Currently installed pip version does not meet minimum requirements (>=6).
++ err_trap
++ local r=1
++ set +o xtrace
stack.sh failed
Error on exit