无法运行自测套件,尝试运行时,我遇到错误了
python suite_selftest.py --config "C:\Users\Arul\Downloads\PythonSelfTest\smapi\service_configs\smapiConfig.cfg"
Traceback (most recent call last):
File "suite_selftest.py", line 13, in <module>
from utility import ServiceConfigOptionParser
File "C:\Users\Arul\Downloads\PythonSelfTest\smapi\content_workflow\utility.py", line 84
except ItemNotFound, w:
^
SyntaxError: invalid syntax
答案 0 :(得分:0)
由于您收到SyntaxError,因此您似乎正在尝试使用Python 3.x执行自测套件,因此它必须在Python 2.7+上运行!