novaclient not compatible with pip 7.1.0

asked 2015-09-29 01:38:16 -0500

shunde-zhang gravatar image

Hi,

Recently I tried to install novaclient on CentOS 6, and found that pip in EPEL has been upgraded to 7.1.0.

python-pip.noarch                       7.1.0-1.el6                  @epel

If I use it to install python-novaclient, e.g.

pip install python-novaclient

The installation is OK, but nova doesn't run.

# nova
Traceback (most recent call last):
  File "/usr/bin/nova", line 7, in <module>
    from novaclient.shell import main
  File "/usr/lib/python2.6/site-packages/novaclient/__init__.py", line 17, in <module>
    from novaclient import api_versions
  File "/usr/lib/python2.6/site-packages/novaclient/api_versions.py", line 26, in <module>
    from novaclient import utils
  File "/usr/lib/python2.6/site-packages/novaclient/utils.py", line 21, in <module>
    from oslo_serialization import jsonutils
  File "/usr/lib/python2.6/site-packages/oslo_serialization/jsonutils.py", line 60, in <module>
    from oslo_utils import timeutils
  File "/usr/lib/python2.6/site-packages/oslo_utils/timeutils.py", line 24, in <module>
    from debtcollector import removals
  File "/usr/lib/python2.6/site-packages/debtcollector/__init__.py", line 20, in <module>
    'debtcollector').version_string()
  File "/usr/lib/python2.6/site-packages/pbr/version.py", line 457, in version_string
    return self.semantic_version().brief_string()
  File "/usr/lib/python2.6/site-packages/pbr/version.py", line 452, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()
  File "/usr/lib/python2.6/site-packages/pbr/version.py", line 439, in _get_version_from_pkg_resources
    result_string = packaging.get_version(self.package)
  File "/usr/lib/python2.6/site-packages/pbr/packaging.py", line 668, in get_version
    raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

However if I use pip 1.3.0 to install novaclient, it works.

(EPEL doesn't have pip 1.3.0 any more, I use easy_install to install it.)

easy_install pip==1.3.0

Does anyone have the same issue?

Thanks, Shunde.

edit retag flag offensive close merge delete