最近從版本4升級到SoftLayer API版本5.1.0。*。現在,當我嘗試使用它時,我得到了下面的錯誤輸出。我假設這與Python版本有關,但是對於Python來說很新穎,並且閱讀了如何在RHEL中混淆Python的版本是危險的,我一直在猶豫是否需要進行更改。SL CLI升級到5.1.0後崩潰
$ 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
機信息 -
- RHEL 6.7
- PIP 8.1.2從/usr/lib/python2.6/site-packages(Python 2.6中)