jupyter / atom-notebook

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

'jupyter' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process. #31

Open den-run-ai opened 8 years ago

den-run-ai commented 8 years ago

events.js:141 Uncaught Error: spawn jupyter ENOENT

No running Jupyter session. Try closing and re-opening this file.

gnestor commented 8 years ago

Try setting the path of your jupyter binary in Atom > Settings > Packages > jupyter-notebook > Settings > Path to jupyter binary. If you don't know your jupyter path, try which jupyter in your terminal. My jupyter path on OS X is /usr/local/bin/. Once jupyter-notebook can find your jupyter binary, you should be able to open notebooks.

den-run-ai commented 8 years ago

This did not work, I'm on windows. Python 2.7

On Wed, Jan 20, 2016, 10:25 AM Grant Nestor notifications@github.com wrote:

Try setting the path of your jupyter binary in Atom > Settings > Packages

jupyter-notebook > Settings > Path to jupyter binary. If you don't know your jupyter path, try which jupyter in your terminal. My jupyter path on OS X is /usr/local/bin/. Once jupyter-notebook can find your jupyter binary, you should be able to open notebooks.

— Reply to this email directly or view it on GitHub https://github.com/jupyter/atom-notebook/issues/31#issuecomment-173260309 .

gnestor commented 8 years ago

Have you confirmed the jupyter path that you added in terminal?

den-run-ai commented 8 years ago

Yes, I set the path to Jupyter full path, BTW on Windows the command is "where jupyter"

On Wed, Jan 20, 2016, 10:45 AM Grant Nestor notifications@github.com wrote:

Have you confirmed the jupyter path that you added in terminal?

On Jan 20 2016, at 8:43 am, denfromufa <notifications@github.com> wrote: This did not work, I'm on windows. Python 2.7

On Wed, Jan 20, 2016, 10:25 AM Grant Nestor <notifications@github.com>

wrote:

> Try setting the path of your jupyter binary in Atom > Settings > Packages > > jupyter-notebook > Settings > Path to jupyter binary. If you don't know > your jupyter path, try which jupyter in your terminal. My jupyter path on > OS X is /usr/local/bin/. Once jupyter-notebook can find your jupyter > binary, you should be able to open notebooks. > > — > Reply to this email directly or view it on GitHub > <https://github.com/jupyter/atom- notebook/issues/31#issuecomment-173260309> > . >

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/jupyter/atom-notebook/issues/31#issuecomment-173267790 .

gnestor commented 8 years ago

Related https://github.com/jupyter/atom-notebook/issues/29

gnestor commented 8 years ago
  1. Add your jupyter path to your Atom path in your init script (Command Palette > Init Script): process.env.PATH = process.env.PATH + ';YOUR_PATH'
  2. Reload Atom (Command Palette > Reload)
  3. Try opening a notebook
  4. If that doesn't work, try opening Atom from your project directory from the terminal: atom .
  5. If that doesn't work, check the console in Atom's Developer Tools and share the full stack trace.
auneri commented 8 years ago

I've pinpointed the error to a missing kernelgateway.exe, as reported in the developer console:

kernelGateway.stderr jupyter: 'kernelgateway' is not a Jupyter command

This is due to the following issue, which has been fixed very recently. Installing from the master branch via

pip install --user git+https://github.com/jupyter-incubator/kernel_gateway.git@master

did the trick for me. Hopefully the changes will be distributed in a proper release soon.

gnestor commented 8 years ago

Good to hear 👍

den-run-ai commented 8 years ago

I do not understand why this issue was closed without my verification. I installed kernel_gateway from master (jupyter-kernel-gateway (0.4.0.dev0)) and still get the same error and traceback:

index.js:52 Window load time: 2834ms
/deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
/C:/Users/denis/.atom/packages/jupyter-notebook/lib/notebook-editor.js:222 NotebookEditor created for C:\coolprop_ethylene_glycol.ipynb
C:\Users\denis\AppData\Local\atom\app-1.4.0\resources\app.asar\src\scrollbar-component.js:86 ::shadow pseudo-element is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
events.js:141 Uncaught Error: spawn jupyter ENOENT
4/C:/Users/denis/.atom/packages/jupyter-notebook/lib/notebook-editor.js:77 Action 'Symbol(cell_source_changed)'received in NotebookEditor
gnestor commented 8 years ago

@denfromufa Are you still running into this issue?

den-run-ai commented 8 years ago

I can check with latest if you have any changes or suggestions.

On Tue, Feb 2, 2016, 6:31 PM Grant Nestor notifications@github.com wrote:

@denfromufa https://github.com/denfromufa Are you still running into this issue?

— Reply to this email directly or view it on GitHub https://github.com/jupyter/atom-notebook/issues/31#issuecomment-178911973 .

gnestor commented 8 years ago
  1. Try updating Kernel Gateway: pip install --user git+https://github.com/jupyter-incubator/kernel_gateway.git@master or pip3 install git+https://github.com/jupyter-incubator/kernel_gateway.git@master
  2. Make sure jupyter-notebook is updated
  3. Verify that the path of your jupyter binary is one of the defaults or added to the jupyter-notebook settings
  4. Try opening a notebook
den-run-ai commented 8 years ago

what if jupyter is in system path?

den-run-ai commented 8 years ago

tried uninstalling jupyter notebook from atom:

Uninstalling “jupyter-notebook” failed.Hide output…
Failed to delete jupyter-notebook: ENOTEMPTY, directory not empty 'C:\Users\denis.akhiyarov\.atom\packages\jupyter-notebook\node_modules\react\node_modules\envify\node_modules\jstransform\src'
gnestor commented 8 years ago

Try rm -r C:\Users\denis.akhiyarov\.atom\packages\jupyter-notebook and then re-install (not sure if that command works on Windows...)

den-run-ai commented 8 years ago

del instead of -rm -r. now it is broken.

gnestor commented 8 years ago

Don't know what you mean by that. Can you reinstall? Have you tried apm install jupyter-notebook? PYTHON=python2 apm install?

den-run-ai commented 8 years ago

Why do I need second command?

On Wed, Feb 3, 2016, 10:08 AM Grant Nestor notifications@github.com wrote:

Don't know what you mean by that. Can you reinstall? Have you tried apm install jupyter-notebook? PYTHON=python2 apm install?

— Reply to this email directly or view it on GitHub https://github.com/jupyter/atom-notebook/issues/31#issuecomment-179316179 .

den-run-ai commented 8 years ago

I meant that Jupyter notebook package cannot be uninstalled from atom gui

On Wed, Feb 3, 2016, 10:41 AM Denis Akhiyarov denis.akhiyarov@gmail.com wrote:

Why do I need second command?

On Wed, Feb 3, 2016, 10:08 AM Grant Nestor notifications@github.com wrote:

Don't know what you mean by that. Can you reinstall? Have you tried apm install jupyter-notebook? PYTHON=python2 apm install?

— Reply to this email directly or view it on GitHub https://github.com/jupyter/atom-notebook/issues/31#issuecomment-179316179 .

gnestor commented 8 years ago

If the apm install jupyter-notebook fails, you can try PYTHON=python2 apm install.

den-run-ai commented 8 years ago

apm install jupyter-notebook failed, what is the PYTHON=python2 apm install doing?

rgbkrk commented 8 years ago

The PYTHON=python2 is explicitly setting which Python to use for node-gyp which sadly requires Python 2.

den-run-ai commented 8 years ago

PYTHON: can't open file '=python2': [Errno 2] No such file or directory

rgbkrk commented 8 years ago

Hmmmm. Maybe on Windows you have to do:

SET PYTHON=python2
apm install jupyter-notebook
den-run-ai commented 8 years ago
 "--msvs_version=2013"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR! runas@3.1.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the runas@3.1.1 install script 'node-gyp
npm ERR! This is most likely a problem with the runas packag
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.
den-run-ai commented 8 years ago
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.ta
rgets(57,5): error MSB8020: The build tools for v120 (Platform Toolset = 'v120')
 cannot be found. To build using the v120 build tools, please install v120 build
 tools.  Alternatively, you may upgrade to the current Visual Studio tools by se
lecting the Project menu or right-click the solution, and then selecting "Retarg
et solution". [C:\Users\denis.akhiyarov\AppData\Local\Temp\apm-install-dir-11613
-19844-8heuj8\node_modules\jupyter-notebook\node_modules\ws\node_modules\bufferu
til\build\bufferutil.vcxproj]
ghost commented 6 years ago

I set the path and I still get this error: /Users//miniconda3/envs/py36/bin/jupyter Works fine from command line even without using source activate for the environment. Also tried setting it to /Users//miniconda3/envs/py36/bin

-edit- oops, last one worked. Leaving this in case anyone else wonders about the path with miniconda. Had to restart Atom before the settings took.