0

我正在尝试在我的 Ubuntu 14.04 机器上启动并运行 heat-client。我已按照以下说明进行操作:

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 -)"
4

1 回答 1

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

于 2015-02-13T16:34:15.123 回答