我试图在我的Ubuntu 14.04机器上启动并运行热量客户端。我已按照以下说明操作:
但是当我输入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 -)"
答案 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