• 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
  • 相关阅读:
    团队项目-需求分析报告
    团队项目-选题报告
    第一次结对编程作业
    第一次编程作业
    第一次作业
    第10组 Beta冲刺(2/4)
    第10组 Beta冲刺(1/4)
    第10组 Alpha冲刺(4/4)
    第10组 团队Git现场编程实战
    第二次结对编程作业
  • 原文地址:https://www.cnblogs.com/omgasw/p/12054817.html
Copyright © 2020-2023  润新知