我已经建立了一个一体的快速。在all-in-one-swift中设置keystone时,我在尝试创建服务实体和API端点时遇到错误。我遵循自由文件,但无法解决这个问题! Documentation link
[root@arupsaio ~]# openstack service create --name keystone --description "OpenStack Identity" identity
Traceback (most recent call last):
File "/usr/bin/openstack", line 6, in <module>
from openstackclient.shell import main
File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 30, in <module>
from openstackclient.common import clientmanager
File "/usr/lib/python2.7/site-packages/openstackclient/common/clientmanager.py", line 23, in <module>
import requests
File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module>
from . import utils
File "/usr/lib/python2.7/site-packages/requests/utils.py", line 32, in <module>
from .exceptions import InvalidURL, FileModeWarning
ImportError: cannot import name FileModeWarning
答案 0 :(得分:1)
在我的情况下,有一些包剩饭。 我不得不卸载包3次!
pip uninstall requests # x3
然后重新安装新版本
pip install requests