我尝试更新pip
,但没有帮助。如何克服这个错误。
+./stack.sh:main:1033 create_keystone_accounts
+lib/keystone:create_keystone_accounts:372 local admin_tenant
++lib/keystone:create_keystone_accounts:373 openstack project show admin -f value -c id
Traceback (most recent call last):
File "/usr/local/bin/openstack", line 7, in <module>
from openstackclient.shell import main
File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 32, in <module>
from openstackclient.common import clientmanager
File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 293, in <module>
'openstack.cli.base',
File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 264, in get_plugin_modules
__import__(ep.module_name)
File "/usr/local/lib/python2.7/dist-packages/openstackclient/network/client.py", line 16, in <module>
from openstack import connection
File "/usr/local/lib/python2.7/dist-packages/openstack/connection.py", line 68, in <module>
from openstack import session as _session
File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 29, in <module>
DEFAULT_USER_AGENT = "openstacksdk/%s" % openstack.__version__
AttributeError: 'module' object has no attribute '__version__'
+lib/keystone:create_keystone_accounts:373 admin_tenant=
+lib/keystone:create_keystone_accounts:1 exit_trap
+./stack.sh:exit_trap:474 local r=1
++./stack.sh:exit_trap:475 jobs -p
+./stack.sh:exit_trap:475 jobs=
+./stack.sh:exit_trap:478 [[ -n '' ]]
+./stack.sh:exit_trap:484 kill_spinner
+./stack.sh:kill_spinner:370 '[' '!' -z '' ']'
+./stack.sh:exit_trap:486 [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:487 echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:488 generate-subunit 1481647878 224 fail
+./stack.sh:exit_trap:489 [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:492 /home/tcs467518/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2016-12-13-165502.txt for details
+./stack.sh:exit_trap:498 exit 1
尝试重新安装pip:
/usr/local/bin/pip -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
答案 0 :(得分:0)
我在stable / mitaka版本上遇到了同样的问题。 将openstacksdk升级到0.9.5之后,问题就消失了。 https://bugs.launchpad.net/python-openstacksdk/+bug/1588823 https://review.openstack.org/#/c/325088/