jupyter / jupyter/atom-notebook

getting an error when install jupyter-notebook on Atom

Open
#89 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
301
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Installing “jupyter-notebook@0.0.10” failed.Hide output…

> bufferutil@1.2.1 install /private/var/folders/_v/kvyt0_092q7_d8k2zvyl7f900000gn/T/apm-install-dir-11973-954-1cmsoui.yd7j/node_modules/jupyter-notebook/node_modules/bufferutil
> node-gyp rebuild

> utf-8-validate@1.2.2 install /private/var/folders/_v/kvyt0_092q7_d8k2zvyl7f900000gn/T/apm-install-dir-11973-954-1cmsoui.yd7j/node_modules/jupyter-notebook/node_modules/utf-8-validate
> node-gyp rebuild

> pathwatcher@8.1.0 install /private/var/folders/_v/kvyt0_092q7_d8k2zvyl7f900000gn/T/apm-install-dir-11973-954-1cmsoui.yd7j/node_modules/jupyter-notebook/node_modules/pathwatcher
> node-gyp rebuild

npm WARN deprecated jupyter-js-services@0.21.1: This package has moved to @jupyterlab/services
npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm WARN deprecated phosphor@0.5.0: use @phosphor/ packages
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/bin/python-interceptor.sh" is v3.6.6, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at PythonFinder.failPythonVersion (/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:501:19)
gyp ERR! stack at PythonFinder. (/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:14)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:267:7)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:346:11)
gyp ERR! stack at emitOne (events.js:116:13)
gyp ERR! stack at Socket.emit (events.js:211:7)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:554:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/bin/node" "/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/_v/kvyt0_092q7_d8k2zvyl7f900000gn/T/apm-install-dir-11973-954-1cmsoui.yd7j/node_modules/jupyter-notebook/node_modules/bufferutil
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/bin/python-interceptor.sh" is v3.6.6, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at PythonFinder.failPythonVersion (/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:501:19)
gyp ERR! stack at PythonFinder. (/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:14)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:267:7)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:346:11)
gyp ERR! stack at emitOne (events.js:116:13)
gyp ERR! stack at Socket.emit (events.js:211:7)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:554:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/bin/node" "/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/_v/kvyt0_092q7_d8k2zvyl7f900000gn/T/apm-install-dir-11973-954-1cmsoui.yd7j/node_modules/jupyter-notebook/node_modules/utf-8-validate
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/bin/python-interceptor.sh" is v3.6.6, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at PythonFinder.failPythonVersion (/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:501:19)
gyp ERR! stack at PythonFinder. (/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:14)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:267:7)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:346:11)
gyp ERR! stack at emitOne (events.js:116:13)
gyp ERR! stack at Socket.emit (events.js:211:7)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:554:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/bin/node" "/Users/omar/Desktop/apps/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/_v/kvyt0_092q7_d8k2zvyl7f900000gn/T/apm-install-dir-11973-954-1cmsoui.yd7j/node_modules/jupyter-notebook/node_modules/pathwatcher
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/private/var/folders/_v/kvyt0_092q7_d8k2zvyl7f900000gn/T/apm-install-dir-11973-954-1cmsoui.yd7j/package.json'
npm WARN apm-install-dir-11973-954-1cmsoui.yd7j No description
npm WARN apm-install-dir-11973-954-1cmsoui.yd7j No repository field.
npm WARN apm-install-dir-11973-954-1cmsoui.yd7j No README data
npm WARN apm-install-dir-11973-954-1cmsoui.yd7j No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 (node_modules/jupyter-notebook/node_modules/bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 (node_modules/jupyter-notebook/node_modules/utf-8-validate):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pathwatcher@8.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pathwatcher@8.1.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/omar/.atom/.apm/_logs/2019-08-03T21_08_01_643Z-debug.log

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing installation of jupyter-notebook@0.0.10 on the reported Atom/macOS setup and inspect node-gyp’s Python-version failure for bufferutil, utf-8-validate, and pathwatcher. Done means the package installs without pathwatcher failing; determine whether the fix belongs in the package dependencies or Atom’s bundled apm environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jupyter-notebook, nodejs, python
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.