SUSE 11 SP2上安装FOLSOM,执行keystone提示如下错误,有大侠知道什么原因?
linux:~ # keystoneTraceback (most recent call last):
File "/usr/bin/keystone", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 2807, in <module>
working_set.require(__requires__)
File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 690, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 588, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests>=0.8.8,<1.0 --------------------编程问答-------------------- python-requests 版本依赖冲突吧。看看这个吧:
https://bugs.launchpad.net/ubuntu/+source/python-keystoneclient/+bug/1122146
--------------------编程问答-------------------- 确实,重新安装 python-requests 后,不再有这个提示了。不过另外有一个问题:
suse上自带的python版本是2.6.0,我将Python版本升级成2.7.3(官网下载后makeinstall的),执行keystone总提示:Traceback (most recent call last):
File "/usr/bin/keystone", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2603, in <module>
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 666, in require
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: python-keystoneclient==0.2.2
但实际上python-keystoneclient已经安装了
如果将Python版本切换会2.6,就没有这个提示了,但是由于keystone对Python的要求必须是2.6.8以上,否则后续的功能有问题,因此必须对python版本进行升级。 --------------------编程问答-------------------- 先升级Python 再安装,keystone,实在不行就源代码安装吧 --------------------编程问答-------------------- 怎么感觉包或者组件有问题那
补充:云计算 , OpenStack