Python Can';在Alexa应用程序中调用child_进程

Python Can';在Alexa应用程序中调用child_进程,python,node.js,Python,Node.js,我有一个基于Alexa的lambda函数,我试图在调用python函数时生成一个图。python模块然后将生成的图形上传到s3。但是,在lambda中运行时,在尝试使用子进程调用python模块时会抛出错误。进程没有返回任何内容,节点应用程序中也没有使用python模块中的任何内容。不知道我做错了什么 const PlotDataIntentHandler={ canHandle(handlerInput){ return handlerInput.requestEnvelope.request

我有一个基于Alexa的lambda函数,我试图在调用python函数时生成一个图。python模块然后将生成的图形上传到s3。但是,在lambda中运行时,在尝试使用子进程调用python模块时会抛出错误。进程没有返回任何内容,节点应用程序中也没有使用python模块中的任何内容。不知道我做错了什么

const PlotDataIntentHandler={
canHandle(handlerInput){
return handlerInput.requestEnvelope.request.type==='IntentRequest'
&&handlerInput.requestEnvelope.request.intent.name==='PlotDataIntent';
},
句柄(handlerInput){
让speechText=`;
const spawn=require(“子进程”)。spawn;
//py只是一个hello world模块,但即使这样也无法运行
const pythonProcess=spawn('python',[“/pythonModules/simple.py]”);
speechText=“成功运行python模块”;
返回handlerInput.responseBuilder
.发言(演讲稿)
.getResponse();
}
};