zoukankan      html  css  js  c++  java
  • kolla部署openstack allinone,报错 ImportError: cannot import name decorate

    使用 kolla-ansible 部署 opnenstack:stein,最后无法导入变量脚本,报错信息如下:

    [root@kolla ~]# . /etc/kolla/admin-openrc.sh
    [root@kolla ~]# /usr/share/kolla-ansible/init-runonce
    Traceback (most recent call last):
      File "/usr/bin/openstack", line 5, in <module>
        from openstackclient.shell import main
      File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 24, in <module>
        from osc_lib import shell
      File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 33, in <module>
        from osc_lib.cli import client_config as cloud_config
      File "/usr/lib/python2.7/site-packages/osc_lib/cli/client_config.py", line 18, in <module>
        from openstack.config import exceptions as sdk_exceptions
      File "/usr/lib/python2.7/site-packages/openstack/__init__.py", line 17, in <module>
        import openstack.connection
      File "/usr/lib/python2.7/site-packages/openstack/connection.py", line 188, in <module>
        from openstack.cloud import openstackcloud as _cloud
      File "/usr/lib/python2.7/site-packages/openstack/cloud/openstackcloud.py", line 21, in <module>
        import dogpile.cache
      File "/usr/lib/python2.7/site-packages/dogpile/cache/__init__.py", line 1, in <module>
        from .region import CacheRegion  # noqa
      File "/usr/lib/python2.7/site-packages/dogpile/cache/region.py", line 12, in <module>
        from decorator import decorate
    ImportError: cannot import name decorate

    解决方法:

    sed -i '/^from decorator import decorate/s/from/#from/' /usr/lib/python2.7/site-packages/dogpile/cache/region.py
  • 相关阅读:
    CentOS7利用docker安装MySQL5.7
    阿里云安装Nginx+vue项目部署
    python3 读取串口数据
    CentOS7.0安装EMQ代理服务
    Vue项目接入MQTT
    使用Python发送、订阅消息
    Android监听消息通知栏点击事件
    获取 Android APP 版本信息工具类(转载)
    Android 获取手机的厂商、型号、Android系统版本号等工具类(转载)
    树莓派通过语音模块下发指令点亮小灯泡
  • 原文地址:https://www.cnblogs.com/omgasw/p/12054817.html
Copyright © 2011-2022 走看看