1. 程式人生 > >使用 init-runonce指令碼建立一個 openstack雲專案

使用 init-runonce指令碼建立一個 openstack雲專案

 source /etc/kolla/admin-openrc.sh 

 cd /usr/share/kolla-ansible 

 ./init-runonce 

報錯內容

Traceback (most recent call last):
File "/usr/bin/openstack", line 7, in <module>
from openstackclient.shell import main
File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 23, 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 166, in <module>
from openstack.cloud import openstackcloud as _cloud
File "/usr/lib/python2.7/site-packages/openstack/cloud/openstackcloud.py", line 35, in <module>
import dogpile.cache
File "/usr/lib/python2.7/site-packages/dogpile/cache/__init__.py", line 1, in <module>
from .region import CacheRegion, register_backend, make_region # noqa
File "/usr/lib/python2.7/site-packages/dogpile/cache/region.py", line 15, in <module>
from decorator import decorate
ImportError: cannot import name decorate

 

原因python 無法import  匯入

解決方法為找到