jupyter / jupyter/atom-notebook

Not able to install either from command line or Atom

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

Description

I get the following error code:

Atom: 1.27.2 x64
Electron: 1.7.15
OS: Ubuntu 18.04.4
Atom: 1.27.2 x64
Electron: 1.7.15
OS: Ubuntu 18.04.4

apm install jupyter-notebook

Installing jupyter-notebook to /home/shan1727/.atom/packages ✗

> bufferutil@1.2.1 install /tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory '/tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/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-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/node_modules/bufferutil/build'

> utf-8-validate@1.2.2 install /tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory '/tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/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-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/node_modules/utf-8-validate/build'

> pathwatcher@8.1.0 install /tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/node_modules/pathwatcher
> node-gyp rebuild

make: Entering directory '/tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/node_modules/pathwatcher/build'
CXX(target) Release/obj.target/pathwatcher/src/main.o
CXX(target) Release/obj.target/pathwatcher/src/common.o
pathwatcher.target.mk:99: recipe for target 'Release/obj.target/pathwatcher/src/common.o' failed
make: Leaving directory '/tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/node_modules/pathwatcher/build'
/tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9
└── (empty)

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@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated phosphor@0.5.0: use @phosphor/ packages
../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Mask(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/bufferutil.cc:102:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: *((unsigned char*)to+2) = *((unsigned char*)from+2) ^ *((unsigned char*)mask+2);
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bufferutil.cc:103:7: note: here
case 2: *((unsigned char*)to+1) = *((unsigned char*)from+1) ^ *((unsigned char*)mask+1);
^~~~
../src/bufferutil.cc:103:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2: *((unsigned char*)to+1) = *((unsigned char*)from+1) ^ *((unsigned char*)mask+1);
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bufferutil.cc:104:7: note: here
case 1: *((unsigned char*)to ) = *((unsigned char*)from ) ^ *((unsigned char*)mask);
^~~~
../src/bufferutil.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BufferUtil::Unmask(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/bufferutil.cc:77:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: *((unsigned char*)from+2) = *((unsigned char*)from+2) ^ ((unsigned char*)mask)[2];
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bufferutil.cc:78:7: note: here
case 2: *((unsigned char*)from+1) = *((unsigned char*)from+1) ^ ((unsigned char*)mask)[1];
^~~~
../src/bufferutil.cc:78:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2: *((unsigned char*)from+1) = *((unsigned char*)from+1) ^ ((unsigned char*)mask)[1];
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/bufferutil.cc:79:7: note: here
case 1: *((unsigned char*)from ) = *((unsigned char*)from ) ^ ((unsigned char*)mask)[0];
^~~~
../src/validation.cc: In function ‘int is_valid_utf8(size_t, char*)’:
../src/validation.cc:81:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 5 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:82:7: note: here
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:82:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:83:7: note: here
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:83:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:84:7: note: here
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:84:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:85:7: note: here
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:85:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:86:7: note: here
case 0 : ch += (uint8_t) value[i];
^~~~
../src/validation.cc: In function ‘int isLegalUTF8(const uint8_t*, int)’:
../src/validation.cc:51:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:52:5: note: here
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~~~
../src/validation.cc:52:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:53:5: note: here
case 2: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
^~~~
../src/validation.cc:59:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 0xF4: if (a > 0x8F) return 0;
^~
../src/validation.cc:62:5: note: here
case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
^~~~
../src/common.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Watch(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/common.cc:127:90: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local&)’
WatcherHandle handle = PlatformWatch(*String::Utf8Value(v8::Isolate::GetCurrent(), path));
^
In file included from /home/shan1727/.atom/.node-gyp/.node-gyp/iojs-1.7.15/src/node.h:42:0,
from ../../nan/nan.h:56,
from ../src/common.h:6,
from ../src/common.cc:1:
/home/shan1727/.atom/.node-gyp/.node-gyp/iojs-1.7.15/deps/v8/include/v8.h:2649:14: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Local)
explicit Utf8Value(Local obj);
^~~~~~~~~
/home/shan1727/.atom/.node-gyp/.node-gyp/iojs-1.7.15/deps/v8/include/v8.h:2649:14: note: candidate expects 1 argument, 2 provided
make: *** [Release/obj.target/pathwatcher/src/common.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/atom/resources/app/apm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.15.0-041500-generic
gyp ERR! command "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/node_modules/jupyter-notebook/node_modules/pathwatcher
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/package.json'
npm WARN apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9 No description
npm WARN apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9 No repository field.
npm WARN apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9 No README data
npm WARN apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9 No license field.
npm ERR! Linux 4.15.0-041500-generic
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/shan1727/.atom/.apm/.apmrc" "--userconfig" "/home/shan1727/.atom/.apmrc" "install" "/tmp/d-12055-10872-b8g0za.6cntfvquxr/package.tgz" "--runtime=electron" "--target=1.7.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

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 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pathwatcher package,
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 information on how to open an issue for this project with:
npm ERR! npm bugs pathwatcher
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pathwatcher
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/apm-install-dir-12055-10872-1hzl2gg.vcsy06bt9/npm-debug.log
npm ERR! code 1

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with `apm install jupyter-notebook` on the reported Atom and Ubuntu versions, then inspect the `pathwatcher@8.1.0` build and the referenced npm debug log. Done means the package installs successfully or the version incompatibility is clearly documented with a verified resolution.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.