Error while using pyrax module on OSX

I am using an ansible script for my inventory. The problem I am facing has nothing to do with the available one, but with pyrax or pbr.

I did the following steps:

sudo pip install pyrax
>>> import pyrax


And then I get:

File "/Library/Python/2.7/site-packages/pbr/", line 870, 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?


As per some github issues, pbr needs to be installed separately to work around this issue. I did it with no luck.

pip show pbr
Name: pbr
Version: 0.10.0
Location: /Library/Python/2.7/site-packages
Requires: pip

pip show python-novaclient
Name: python-novaclient
Version: 2.19.0
Location: /Library/Python/2.7/site-packages
Requires: requests, iso8601, python-keystoneclient, Babel, oslo.utils, six, simplejson, pbr, PrettyTable, argparse


I am using python 2.7.5 and not virtualenv. Any help would be greatly appreciated!

Thanks Barry


source to share

1 answer

The following seems to have gotten the order:

pip install --upgrade distribute


After various version conflicts and all the helpful staff saved me.



All Articles