n-riesco / jp-babel

jp-babel is a babel kernel for the Jupyter notebook
Other
86 stars 16 forks source link

Error: EACCES: permission denied, scandir #18

Closed buzz closed 6 years ago

buzz commented 6 years ago

Just installed jp-babel kernel, started a new notebook. Then the kernel died:

Error: EACCES: permission denied, scandir '/store/mycomputer/datastore'
    at Object.fs.readdirSync (fs.js:904:18)
    at findFile (/store/mycomputer/datastore/myusername/programs/jupyter/node_modules/jp-babel/lib/kernel.js:100:21)
    at findFile (/store/mycomputer/datastore/myusername/programs/jupyter/node_modules/jp-babel/lib/kernel.js:110:12)
    at findFile (/store/mycomputer/datastore/myusername/programs/jupyter/node_modules/jp-babel/lib/kernel.js:110:12)
    at Object.<anonymous> (/store/mycomputer/datastore/myusername/programs/jupyter/node_modules/jp-babel/lib/kernel.js:84:19)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)

It looks like jp-babel traverses up the directories in order to find a .babelrc.

$ ls -l /store/mycomputer/datastore
ls: cannot open directory '/store/mycomputer/datastore': Permission denied
$ ls -ld /store/mycomputer/datastore
drwx--x--x 9 root root 4096 Jan  4 15:41 /store/mycomputer/datastore

This is how things are on the computer I'm currently at. I guess we can't assume all parent dirs are accessible.

Versions

$ jp-babel --version
1.1.3

$ npx npm --version
5.6.0

$ npx ipython --version
6.2.1

$ lsb_release -sd
"openSUSE Leap 42.3"