Why does 'w630> .js' die when called from inside python / uwsgi?
From the shell, this code python
that runs and interacts with the process node.js
works fine:
> from subprocess import *
> js = "(function(m) { console.log(m) })('hello world')"
> (out,err) = Popen(["node"], stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=False).communicate(js)
> out
"hello world\n"
But when I run the same code from uwsgi , I instead get this in err
:
'FATAL ERROR: v8::Context::New() V8 is no longer usable\n'
Any community wsgi
or community ideas node.js
? I'm at a loss.
+3
source to share