Nova计算软件包安装期间出错

时间:2015-01-29 06:31:29

标签: python python-2.7 openstack-nova

命令错误:python setup.py install

我没有收到错误。请帮忙

这是错误

>bash-4.2# python setup.py install
>ERROR:root:Error parsing
Traceback (most recent call last):
File "/sagar/nova/pbr-0.10.7-py2.7.egg/pbr/core.py", line 104, in pbr
attrs = util.cfg_to_args(path)
File "/sagar/nova/pbr-0.10.7-py2.7.egg/pbr/util.py", line 238, in cfg_to_args
>pbr.hooks.setup_hook(config)
File "/sagar/nova/pbr-0.10.7-py2.7.egg/pbr/hooks/__init__.py", line 27, in setup_hook
metadata_config.run()
File "/sagar/nova/pbr-0.10.7-py2.7.egg/pbr/hooks/base.py", line 29, in run
self.hook()
File "/sagar/nova/pbr-0.10.7-py2.7.egg/pbr/hooks/metadata.py", line 28, in hook
self.config['name'], self.config.get('version', None))
File "/sagar/nova/pbr-0.10.7-py2.7.egg/pbr/packaging.py", line 554, 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? error in setup command: 
Error parsing /sagar/nova/setup.cfg: 
Exception:      Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

1 个答案:

答案 0 :(得分:0)

我认为你没有在PATH变量中添加git。我在Hyper V上安装nova时遇到了类似的问题。只是更新了PATH变量就可以了。