Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

novadocker pip install failed

Hi all,

I tried to install novadocker on OpenStack Kilo. I install OpenStack Kilo and Docker 1.9 successfully.

According to the nova-docker doc:

https://wiki.openstack.org/wiki/Docker#Configure_DevStack_to_use_Nova-Docker

To install the driver:

pip install -e git+https://github.com/stackforge/nova-docker#egg=novadocker

I encounter the following error:

[root@localhost ~]# pip install -e git+https://github.com/stackforge/nova-docker#egg=novadocker
Obtaining novadocker from git+https://github.com/stackforge/nova-docker#egg=novadocker
  Cloning https://github.com/stackforge/nova-docker to ./src/novadocker
  Running setup.py egg_info for package novadocker
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/root/src/novadocker/setup.py", line 29, in <module>
        pbr=True)
      File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 630, in resolve
        raise VersionConflict(dist,req) # XXX put more info here
    pkg_resources.VersionConflict: (pbr 0.11.0 (/usr/lib/python2.7/site-packages), Requirement.parse('pbr>=1.8'))
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/root/src/novadocker/setup.py", line 29, in <module>

    pbr=True)

  File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup

    _setup_distribution = dist = klass(attrs)

  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__

    self.fetch_build_eggs(attrs.pop('setup_requires'))

  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs

    parse_requirements(requires), installer=self.fetch_build_egg

  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 630, in resolve

    raise VersionConflict(dist,req) # XXX put more info here

pkg_resources.VersionConflict: (pbr 0.11.0 (/usr/lib/python2.7/site-packages), Requirement.parse('pbr>=1.8'))

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /root/src/novadocker

It seems some version conflict problems. So any idea about solving this?

Thanks