Fedora的包还是有很多问题,安装好了,运行glance却碰到这样的问题:
glance
Traceback (most recent call last):
File "/usr/bin/glance", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2659, in <module>
parse_requirements(__requires__), Environment()
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-keystoneclient>=0.1.2,<0.2
机器上查询python-keystoneclient的版本为:
rpm -qa python-keystoneclient
python-keystoneclient-0.2.0-2.el6.noarch
都是Fedora下的包,它们怎么没做依赖检查呢,难怪Fedora商用的很少啊
解决的办法,只要把依赖 python-keystoneclient>=0.1.2,<0.2 中的 ,<0.2 去掉
修改办法:
vi /usr/lib/python2.6/site-packages/python_glanceclient-0.5.1-py2.6.egg-info/requires.txt
将python-keystoneclient>=0.1.2,<0.2 改成python-keystoneclient>=0.1.2, 就OK了。