heat-client不会运行,没有名为utils的模块

时间:2015-02-10 22:04:48

标签: python python-2.7 heat openstack-heat

我试图在我的Ubuntu 14.04机器上启动并运行热量客户端。我已按照以下说明操作:

http://docs.rackspace.com/orchestration/api/v1/orchestration-getting-started/content/Install_Heat_Client.html

但是当我输入heat stack-list进行测试时,我收到以下错误:

Traceback (most recent call last): File "/usr/local/bin/heat", line 7, in <module> from heatclient.shell import main File "/usr/local/lib/python2.7/dist-packages/heatclient/shell.py", line 26, in <module> from oslo.utils import encodeutils ImportError: No module named utils

我已经尝试重新安装python2.7-dev,重新安装设置实用程序,检查我的〜/ .profile有:

export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

1 个答案:

答案 0 :(得分:1)

通过执行以下操作解决了此问题:sudo apt-get remove python-pip wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py sudo python get-pip.py

在此处找到解决方案:https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1306991