用 robotframework 执行脚本时报错,我装了 3.44 和 2.712 两个 python 环境,都可以运行脚本,“C:/Python27/Scripts ” 添加到 PATH 环境变量中了,pybot 可以运行。

报错信息如下:
command: pybot.bat --argumentfile c:\users\mc\appdata\local\temp\RIDE72ejfc.d\argfile.txt --listener "D:\Program Files\Python2.7.12\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:59256:False" E:\Library\Robotframework\moji_project
[ ERROR ] Taking listener 'D:\Program Files\Python2.7.12\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:59256:False' into use failed: Importing listener 'D:\Program Files\Python2.7.12\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py' failed: SyntaxError: invalid syntax (TestRunnerAgent.py, line 196)
Traceback (most recent call last):
None
PYTHONPATH:
D:\Program Files\Python34\lib\site-packages\setuptools-28.8.0-py3.4.egg
C:\windows\system32\python34.zip
D:\Program Files\Python34\DLLs
D:\Program Files\Python34\lib
D:\Program Files\Python34
D:\Program Files\Python34\lib\site-packages

有没有谁知道怎么解决啊?


↙↙↙阅读原文可查看相关链接,并与作者交流