Process exited with code: 3221225781
I am trying to connect node with python and I am getting this error.
Error: process exited with code 3221225781 at terminateIfNeeded (E:\EDU\Angular\test-app\node_modules\python-shell\index.js:100:23) at ChildProcess.<anonymous> (E:\EDU\Angular\test-app\node_modules\python-shell\index.js:89:9) at ChildProcess.emit (events.js:159:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
I tried the same code which was given in the example in the documentation. But I am still getting the same error and I have no idea what that means.
This is my code as of now: docs is a json object
var PythonShell = require('python-shell');
var options = {'pythonPath': './usr/python', 'scriptPath': '/usr', 'pythonOptions': ['-u']}
var pyshell = new PythonShell('script.py', options);
pyshell.send(JSON.stringify(docs));
pyshell.on('message', function (message) {
console.log(message);
});
pyshell.end(function (err) {
if (err) {
console.log(err);
}
console.log('finished');
});
My python script is:
import sys, json, dicttoxml jsonvar = json.loads(sys.stdin.readlines()[0]) xml = dicttoxml.dicttoxml(jsonvar) print xml