2014-09-18 2 views
3

내 인벤토리에 대해 가능한 rax.py 스크립트를 사용하고 있습니다. 내가 겪고있는 문제는 피라미드 또는 pbr과 관련이 없지만 관계가 없습니다.OSX에서 pyrax 모듈을 사용하는 중에 오류가 발생했습니다

sudo pip install pyrax 
python 
>>> import pyrax 

을 그리고 내가 얻을 :

나는 다음과 같은 조치를 취했습니다

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? 

하나가이 문제를 해결하기 위해 별도로 PBR을 설치해야합니다 몇 가지 GitHub의 문제에 따라. 나는 행운이없이 이것을했다.

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 

저는 virtualenv가 아닌 python 2.7.5를 사용하고 있습니다. 어떤 도움이라도 대단히 감사하겠습니다! 다음

감사 베리

답변

7

순서로 물건을받은 것 같다 : 다양한 버전 충돌 모든 몇 가지 유용한 직원이 나를 구원

pip install --upgrade distribute 

후.

+1

전설,이 시간 동안 나를 화나게했습니다! – justcompile

+1

앞으로 이러한 종류의 문제를 피하기 위해 게시했습니다 : https://medium.com/@barry_botha/using-vagrant-to-run-your-ansible-playbooks-2d7616a5d99a Vagrant를 사용하여 Ansible을 실행하는 방법 플레이 북. –

관련 문제