Openstack CLI gives syntax error

asked 2017-12-28 13:06:42 -0500

casr20115 gravatar image

updated 2017-12-28 14:47:55 -0500

Using python 2.6.6 and centos 6.9

[root@casrVM sf_VBshare]# nova --version Traceback (most recent call last): File "/usr/bin/nova", line 7, in <module> from novaclient.shell import main File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 27, in <module> from keystoneauth1 import loading File "/usr/lib/python2.6/site-packages/keystoneauth1/loading/__init__.py", line 13, in <module> from keystoneauth1.loading import adapter File "/usr/lib/python2.6/site-packages/keystoneauth1/loading/adapter.py", line 90 for name, opt in deprecated_opts.items()} ^ SyntaxError: invalid syntax [root@casrVM sf_VBshare]#

Any idea if I need to upgrade python or what is the solution?

It looks a little messy these line is where I'm getting the Syntax error

for name, opt in deprecated_opts.items()}

  ^

SyntaxError: invalid syntax

edit retag flag offensive close merge delete