XiaoMi/minos

关于初始化Supervisor时出现elementtree安装错误

Closed this issue · 6 comments

系统环境:
CentOS 6.5 64位
Python 2.7.8

报错内容:

[root@AY1407221519105745fcZ minos]# ./build.sh start supervisor --tank_ip 127.0.0.1 --tank_port 8000
2014-10-14 11:41:16 Building supervisor
2014-10-14 11:41:16 Check and install prerequisite python libraries
2014-10-14 11:41:16 Installing elementtree
Downloading/unpacking elementtree>=1.2.6-20050316
  Could not find any downloads that satisfy the requirement elementtree>=1.2.6-20050316
  Some externally hosted files were ignored (use --allow-external elementtree to allow).
Cleaning up...
No distributions at all found for elementtree>=1.2.6-20050316
Storing debug log for failure in /root/.pip/pip.log
2014-10-14 11:41:17 Command '['/root/minos/build/env/bin/pip', 'install', 'elementtree>=1.2.6-20050316']' returned non-zero exit status 1

所提问题:
经检查在Python 2.7.8中已经存在elementtree,是否能把安装elementtree模块的这一步去掉,具体要修改哪个文件?

你的机器上有外网吗?
你先确认一下在你的机器上随便用pip装个什么python的库,看能不能成功?

查了一下,PIP确实各种出错。谢谢。我先排查一下。

官方的源上貌似没有elementtree这个包

pip 源正常了。目前刚配完tank,正要配supervisor。
目前minos的env中已安装包清单如下:

(env)[root@AY1407221519105745fcZ minos]# pip list
configobj (5.0.6)
Django (1.7)
meld3 (1.0.0)
pip (1.5.4)
PyYAML (3.11)
setuptools (2.2)
six (1.8.0)
wsgiref (0.1.2)

最后把minos_config.py中的相关代码注释掉了,正常运行了:

# supervisor
SUPERVISOR_PREREQUISITE_PYTHON_LIBS = [
  ('setuptools', 'setuptools', '1.4.0'),
  ('meld3', 'meld3', '0.6.10'),
  #('elementtree', 'elementtree', '1.2.6-20050316'),
  ('pexpect', 'pexpect', '3.0'),
]

赞。