Comment 6 for bug 1328530

Revision history for this message
Gary Duan (gduan) wrote :

Upgrade setuptools doesn't seem to resolve the problem in me environment. I got the following error. Even I manually install pip 1.4.1, it is uninstalled by devstack and 1.5.6 is put on.

+ install_get_pip
+ [[ ! -r /home/varmour/workspace/devstack/files/get-pip.py ]]
+ sudo -E python /home/varmour/workspace/devstack/files/get-pip.py
/usr/lib/python2.7/dist-packages/setuptools/command/install_scripts.py:3: UserWarning: Module pip was already imported from /tmp/tmpXQI4XG/pip.zip/pip/__init__.py, but /usr/local/lib/python2.7/dist-packages/pip-1.4.1-py2.7.egg is being added to sys.path
  from pkg_resources import Distribution, PathMetadata, ensure_directory
Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-1.5.6-py2.py3-none-any.whl#md5=4d4fb4b69df6731c7aeaadd6300bc1f2
Installing collected packages: pip
  Found existing installation: pip 1.4.1
    Uninstalling pip:
      Successfully uninstalled pip
Successfully installed pip
Cleaning up...
+ get_versions
++ which pip
+ PIP=/usr/local/bin/pip
+ [[ -n /usr/local/bin/pip ]]
++ /usr/local/bin/pip --version
++ awk '{ print $2}'
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==1.4.1
+ PIP_VERSION=
+ echo 'pip: '
pip: