-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hi,
I'm trying to follow your example but can't get the child process to spawn correctly. Here's my code:
var virtualenv = require("virtualenv"); var packagePath = require.resolve(__dirname + '/../../package.json'); var env = virtualenv(packagePath); var child = env.spawnPython(["../python/test.py"]);
and here's the error:
events.js:163 Uncaught Error: spawn /app/.node-virtualenv/bin/python ENOENT at exports._errnoException (util.js:1050) at Process.ChildProcess._handle.onexit (internal/child_process.js:193) at onErrorNT (internal/child_process.js:367) at _combinedTickCallback (internal/process/next_tick.js:80) at process._tickCallback (internal/process/next_tick.js:104)
Am I missing something obvious? My goal is to create a virtualenv when my app loads and then run all of my python code there so I don't have to worry about missing python modules. I'm running this on OS X with Python 2.7
Thanks