n-riesco / ijavascript

IJavascript is a javascript kernel for the Jupyter notebook
Other
2.19k stars 185 forks source link

error executing ijs #48

Closed Qtrain closed 9 years ago

Qtrain commented 9 years ago

fs.js:500 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: EACCES, permission denied '/usr/local/lib/node_modules/ijavascript/spec/javascript/kernel.json' at Error (native) at Object.fs.openSync (fs.js:500:18) at Object.fs.writeFileSync (fs.js:1099:15) at installKernelAsync (/usr/local/lib/node_modules/ijavascript/bin/ijavascript.js:287:8) at /usr/local/lib/node_modules/ijavascript/bin/ijavascript.js:120:5 at /usr/local/lib/node_modules/ijavascript/bin/ijavascript.js:236:13 at ChildProcess.exithandler (child_process.js:742:7) at ChildProcess.emit (events.js:110:17) at maybeClose (child_process.js:1015:16) at Socket. (child_process.js:1183:11)

n-riesco commented 9 years ago

Thanks for reporting this issue. I've tried to reproduce the problem on an Ubuntu 14.04 and I can't. Please, can you post the steps to reproduce it? I'd like to undertand why ijs can't create the file kernel.json in folder /usr/local/lib/node_modules/ijavascript/spec/javascript/.

Qtrain commented 9 years ago

Sry. Actually using OSX which might be the problem. I will try on an Ubuntu distro and report back.

n-riesco commented 9 years ago

This is issue has made realise that I should use a temporary folder to create the kernel spec folder for Jupyter.

I'm very surprised no other OSX users have reported this issue before.

Qtrain commented 9 years ago

Cool. Thx for looking into this. I'm really interested in using this. Pls let me know if you come up with a new install for OSX.

n-riesco commented 9 years ago

I will some time this week.

n-riesco commented 9 years ago

In the meantime, installaling ijavascript locally should work on OSX:

$ npm install ijavascript
$ node_modules/.bin/ijs
n-riesco commented 9 years ago

@Qtrain Please, reopen this issue if the problem is still present in OSX. Thanks again.