jupyter / atom-notebook

[Deprecated] Jupyter Notebook, but inside Atom.
MIT License
306 stars 48 forks source link

No such file or directory #include "nan.h" #45

Open Fab7c4 opened 8 years ago

Fab7c4 commented 8 years ago

notebook/node_modules/ws/node_modules/utf-8-validate/build'

../src/main.cc:1:17: fatal error: nan.h: No such file or directory #include "nan.h" ^ compilation terminated. make: *** [Release/obj.target/runas/src/main.o] Error 1

Missing file when installing via atom package manager.

kingjr commented 8 years ago

same here

kingjr commented 8 years ago

Here is the full error on ubuntu 14.04

> runas@3.1.1 install /tmp/apm-install-dir-11642-5711-v0zwdt/node_modules/jupyter-notebook/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

make: Entering directory `/tmp/apm-install-dir-11642-5711-v0zwdt/node_modules/jupyter-notebook/node_modules/pathwatcher/node_modules/runas/build'
  CXX(target) Release/obj.target/runas/src/main.o
make: Leaving directory `/tmp/apm-install-dir-11642-5711-v0zwdt/node_modules/jupyter-notebook/node_modules/pathwatcher/node_modules/runas/build'

> utf-8-validate@1.2.1 install /tmp/apm-install-dir-11642-5711-v0zwdt/node_modules/jupyter-notebook/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory `/tmp/apm-install-dir-11642-5711-v0zwdt/node_modules/jupyter-notebook/node_modules/ws/node_modules/utf-8-validate/build'
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  COPY Release/validation.node
make: Leaving directory `/tmp/apm-install-dir-11642-5711-v0zwdt/node_modules/jupyter-notebook/node_modules/ws/node_modules/utf-8-validate/build'

> bufferutil@1.2.1 install /tmp/apm-install-dir-11642-5711-v0zwdt/node_modules/jupyter-notebook/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory `/tmp/apm-install-dir-11642-5711-v0zwdt/node_modules/jupyter-notebook/node_modules/ws/node_modules/bufferutil/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  COPY Release/bufferutil.node
make: Leaving directory `/tmp/apm-install-dir-11642-5711-v0zwdt/node_modules/jupyter-notebook/node_modules/ws/node_modules/bufferutil/build'

npm WARN peerDependencies The peer dependency phosphor-disposable@^1.0.5 included from jupyter-js-services will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency phosphor-signaling@^1.2.0 included from jupyter-js-services will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
../src/main.cc:1:17: fatal error: nan.h: No such file or directory
 #include "nan.h"
                 ^
compilation terminated.

...

I also tried installing nan header, but this didn't help.

I find similar issues around github e.g. https://github.com/TooTallNate/node-time/issues/54, https://github.com/Automattic/node-canvas/issues/588, but I'm not clear what to get from that

gnestor commented 8 years ago

Similar: https://github.com/jupyter/atom-notebook/issues/41

gnestor commented 7 years ago

This repo is not being actively maintained 🙁 In the meantime, I suggest that you look at hydrogen to run code inline in Atom's text editor, nteract (a new Jupyter notebook client built using Electron, React, Redux, RxJS), Jupyter Notebook, and JupyterLab.

Having said that, nteract is currently extracting its many components into separate packages which will allow them to be reused and assembled to create new apps. When I have the time, I would like to use them to completely refactor this project.