{"action":"created","issue":{"url":"https://api.github.com/repos/mjpizz/node-virtualenv/issues/14","repository_url":"https://api.github.com/repos/mjpizz/node-virtualenv","labels_url":"https://api.github.com/repos/mjpizz/node-virtualenv/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mjpizz/node-virtualenv/issues/14/comments","events_url":"https://api.github.com/repos/mjpizz/node-virtualenv/issues/14/events","html_url":"https://github.com/mjpizz/node-virtualenv/issues/14","id":261705797,"number":14,"title":"Can't spawn child python process","user":{"login":"viziblydiffrnt","id":7217284,"avatar_url":"https://avatars3.githubusercontent.com/u/7217284?v=4","gravatar_id":"","url":"https://api.github.com/users/viziblydiffrnt","html_url":"https://github.com/viziblydiffrnt","followers_url":"https://api.github.com/users/viziblydiffrnt/followers","following_url":"https://api.github.com/users/viziblydiffrnt/following{/other_user}","gists_url":"https://api.github.com/users/viziblydiffrnt/gists{/gist_id}","starred_url":"https://api.github.com/users/viziblydiffrnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viziblydiffrnt/subscriptions","organizations_url":"https://api.github.com/users/viziblydiffrnt/orgs","repos_url":"https://api.github.com/users/viziblydiffrnt/repos","events_url":"https://api.github.com/users/viziblydiffrnt/events{/privacy}","received_events_url":"https://api.github.com/users/viziblydiffrnt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-29T17:08:37Z","updated_at":"2017-10-20T18:02:20Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm trying to follow your example but can't get the child process to spawn correctly. Here's my code:\r\n\r\n`var virtualenv = require(\"virtualenv\");\r\nvar packagePath = require.resolve(__dirname + '/../../package.json');\r\nvar env = virtualenv(packagePath);\r\nvar child = env.spawnPython([\"../python/test.py\"]);\r\n`\r\n\r\nand here's the error:\r\n\r\n`events.js:163 Uncaught Error: spawn /app/.node-virtualenv/bin/python ENOENT\r\n    at exports._errnoException (util.js:1050)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:193)\r\n    at onErrorNT (internal/child_process.js:367)\r\n    at _combinedTickCallback (internal/process/next_tick.js:80)\r\n    at process._tickCallback (internal/process/next_tick.js:104)`\r\n\r\nAm 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\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/mjpizz/node-virtualenv/issues/comments/338280471","html_url":"https://github.com/mjpizz/node-virtualenv/issues/14#issuecomment-338280471","issue_url":"https://api.github.com/repos/mjpizz/node-virtualenv/issues/14","id":338280471,"user":{"login":"lucbelliveau","id":2806146,"avatar_url":"https://avatars3.githubusercontent.com/u/2806146?v=4","gravatar_id":"","url":"https://api.github.com/users/lucbelliveau","html_url":"https://github.com/lucbelliveau","followers_url":"https://api.github.com/users/lucbelliveau/followers","following_url":"https://api.github.com/users/lucbelliveau/following{/other_user}","gists_url":"https://api.github.com/users/lucbelliveau/gists{/gist_id}","starred_url":"https://api.github.com/users/lucbelliveau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucbelliveau/subscriptions","organizations_url":"https://api.github.com/users/lucbelliveau/orgs","repos_url":"https://api.github.com/users/lucbelliveau/repos","events_url":"https://api.github.com/users/lucbelliveau/events{/privacy}","received_events_url":"https://api.github.com/users/lucbelliveau/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T18:02:20Z","updated_at":"2017-10-20T18:02:20Z","author_association":"CONTRIBUTOR","body":"@viziblydiffrnt This looks very similar to the error I was getting which is fixed by #13.\r\n\r\nIn my case, the issue was that the path to my node project was too long... you can easily test if that is the case by copying your project into */tmp* or some other short directory, and trying to run it from there.\r\n\r\nOr you can try out my fork, https://github.com/lucbelliveau/node-virtualenv\r\n\r\n"}}
{"actor":{"display_login":"lucbelliveau"}}