Recently upgraded to SoftLayer API version 5.1.0 from version 4.*. Now when I try to utilize it, I get the below error output. I'm assuming this has to do with python version being used but being pretty new to Python and reading how messing with the version of Python in RHEL is Dangerous I have been hesitant to make changes.
$ slcli
Traceback (most recent call last):
File "/usr/bin/slcli", line 7, in <module>
from SoftLayer.CLI.core import main
File "/usr/lib/python2.6/site-packages/SoftLayer/__init__.py", line 20, in <module>
from SoftLayer.API import * # NOQA
File "/usr/lib/python2.6/site-packages/SoftLayer/API.py", line 11, in <module>
from SoftLayer import config
File "/usr/lib/python2.6/site-packages/SoftLayer/config.py", line 11, in <module>
from SoftLayer import utils
File "/usr/lib/python2.6/site-packages/SoftLayer/utils.py", line 63
for key, val in self.items()}
^
SyntaxError: invalid syntax
Machine information-
- RHEL 6.7
- pip 8.1.2 from /usr/lib/python2.6/site-packages (python 2.6)