Closed therealmarv closed 9 years ago
This is not pyrax itself, but several of its dependencies. The following outlines the version requirements and the packages that specify the version:
ContextualVersionConflict: (pbr 1.0.0 (/home/pybossa/pybossa/env/lib/python2.7/site-packages), Requirement.parse('pbr!=0.7,<1.0,>=0.6'), set(['oslo.i18n', 'python-keystoneclient', 'oslo.serialization', 'oslo.utils']))
no but it is a serious problem for pyrax. I already tried to make a PR for a two line change in openstack/python-novaclient but they want me to sign a contributor agreement and get used to gerrit which is a littlebit much for a two lines change IMHO. Either you pin a version range in your library or somebody else may contribute that changes to python-novaclient or the oslo libraries. It's a shame that a simple 1.0
change can break so much stuff.
We have the same issue. Only now it's pbr 1.0.1. Things were fine for weeks. Deployed tonight, have this issue popping up.
Does pinning pbr to 0.11 actually provide a usable work-around here?
@petersanchez yes pinning the pbr version to the last version 0.11.0 before 1.0 is exactly what we have done at PyBossa to keep pyrax working. Look here in our setup.py https://github.com/PyBossa/pybossa/commit/73179e71cd1ba62fa902ed5272cc2b961403f907
I've submitted a bug report upstream to python-novaclient at https://bugs.launchpad.net/python-novaclient/+bug/1457100
FWIW, there were several upstream issues with pbr 1.0, too: http://lists.openstack.org/pipermail/openstack-dev/2015-May/064362.html
I was confounded by the OpenStack git repo until I found the GitHub mirror. Sharing my code snip for checkout and install of the 0.11.0 version:
$ git clone git@github.com:openstack-dev/pbr.git
$ cd pbr
$ git checkout tags/0.11.0
$ python2.7 setup.py install
Thanks @dandye, the code snippet you shared sorted the problem for me perfectly!
An easy solution via pip is to just pip install -I pbr==0.11.0
Additionally, based on testing, something like the following works too: pip install -U oslo.utils
as oslo.utils
will cause pbr 0.11.0 to be installed.
I'm still following up with the python-novaclient project to see about getting this fixed. The error is actually triggered when you have a novaclient extension installed, causing pbr to trigger a dependency check.
A commit[1] has just been merged into python-novaclient that addresses the issue. A release has not been cut yet. I will follow up once a new release of python-novaclient has been released with this fix.
[1] https://bugs.launchpad.net/python-novaclient/+bug/1457100/comments/9
As of about 30 minutes ago, python-novaclient 2.26.0 was released that includes the fix for this issue. As such I am closing this issue.
Yesterday (March 18) pbr 1.0 was released. When doing a normal
pip install pyrax
with latest pip 6.1.1 it installs 1.0 which is conflicting with pyrax underlying libraries like'oslo.i18n', 'python-keystoneclient', 'oslo.serialization', 'oslo.utils'
.Full error log we got on our system with a new virtualenv today:
We had to pin pbr to a version like 0.11 which is below <1.0 to keep pyrax running.