Error while using pyrax module on OSX
I am using an ansible rax.py 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
python
>>> import pyrax
And then I get:
File "/Library/Python/2.7/site-packages/pbr/packaging.py", 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
+3
source to share