spacenick/jedi-crawler

error on Window 8, node 0.10.7

Closed this issue · 1 comments

jedi.crawl('http://en.wikipedia.org/wiki/', function(err, data){
    console.log(err);
    console.log(data);
});

generate error
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess.handle.onexit (childprocess.js:771:34)

Because the path to phantomjs is wrong(strange behavior), adding option 'phantomPath'

phantom.create(callback, {
        parameters:{'load-images':'no','ignore-ssl-errors':'yes'}, phantomPath:'C:\\Path\\To\\phantomjs.exe'
    });

Solves this problem. Maybe add option for config phantomjs(some properties)?

Thanks man gonna look into it. This is really messy right now gonna clean that up for shu


Nicolas Kermarc

On Fri, Oct 11, 2013 at 6:22 AM, sheo13666 notifications@github.com
wrote:

var spawn = require("child_process").spawn;
var dir = spawn('dir', ['*.txt', '/b']);
dir.stdout.on("data", function() {
    // do things
});

generate error
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess.handle.onexit (childprocess.js:771:34)
Because the path to phantomjs is wrong(strange behavior), adding options

phantom.create(callback, {
        parameters:{'load-images':'no','ignore-ssl-errors':'yes'},                       phantomPath:'C:\\Path\\To\\phantomjs.exe'
    });

Solves this problem. Maybe add option for config phantojs(some properties)?

Reply to this email directly or view it on GitHub:
#1