我正在努力让heat客户端在我的Ubuntu 14.04机器上运行。我遵循了以下说明:
http://docs.rackspace.com/orchestration/api/v1/orchestration-getting-started/content/Install_Heat_Client.html
但当我进入热堆栈列表进行测试时,我收到以下错误:
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,重新安装安装实用程序,检查我的~/.配置文件是否有:
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
通过执行以下操作解决了此问题: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