在readyAPi中执行python脚本时出错

2024-10-01 22:37:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图从readyAPi执行下面的脚本,在这里我得到了一个错误

我正在执行的脚本

def task = ["/Users/test001/Desktop/Dags ver/phyton_script_validation.py"] def executeTask = task.execute() executeTask.waitForOrKill(1000) //println (executeTask.text)

我犯了一个错误

java.io.IOException: Cannot run program "/Users/test001/Desktop/Dags ver/phyton_script_validation.py": CreateProcess error=2, The system cannot find the file specified error at line: 2

另外,请让我知道我是否需要导入任何库/Jar/utils以在ReadyAPi中运行python脚本

谢谢


Tags: py脚本taskdef错误scripterrorusers

热门问题