nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.93k stars 333 forks source link

Failed to activate the Hydrogen package #2152

Closed pboistier closed 2 years ago

pboistier commented 2 years ago

Prerequisites

Description

Hi ! I was never able to run Hydrogen, tried a lot but can't manage to find a solution. Have you got any ideas ? Thank you

Versions

Atom: 1.61.0-beta0 x64 Electron: 11.4.12 OS: linux 5.15.32-213.current Thrown From: Hydrogen package 2.16.3

Stack Trace

Failed to activate the Hydrogen package

At No native build was found for platform=linux arch=x64 runtime=electron abi=85 uv=1 libc=glibc node=12.18.3 electron=11.4.12
    loaded from: /home/pierre/.atom/packages/Hydrogen/node_modules/@aminya/zeromq

Error: No native build was found for platform=linux arch=x64 runtime=electron abi=85 uv=1 libc=glibc node=12.18.3 electron=11.4.12
    loaded from: /home/pierre/.atom/packages/Hydrogen/node_modules/@aminya/zeromq

    at Function.load.path (/packages/Hydrogen/node_modules/node-gyp-build/index.js:60:9)
    at load (/packages/Hydrogen/node_modules/node-gyp-build/index.js:22:30)
    at /packages/Hydrogen/node_modules/@aminya/zeromq/binding.js:1:198)
    at /packages/Hydrogen/node_modules/@aminya/zeromq/binding.js:3:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:149913)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:153507)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:149229)
    at /packages/Hydrogen/node_modules/@aminya/zeromq/lib/index.js:6:11)
    at /packages/Hydrogen/node_modules/@aminya/zeromq/lib/index.js:857:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:149913)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:153507)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:149229)
    at /packages/Hydrogen/node_modules/@aminya/zeromq/index.js:2:18)
    at /packages/Hydrogen/node_modules/@aminya/zeromq/index.js:3:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:149913)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:153507)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:149229)
    at /packages/Hydrogen/node_modules/@aminya/jmp/index.js:37:11)
    at /packages/Hydrogen/node_modules/@aminya/jmp/index.js:451:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:149913)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:153507)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:149229)
    at /packages/Hydrogen/dist/zmq-kernel.js:7:15)
    at /packages/Hydrogen/dist/zmq-kernel.js:325:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:149913)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:153507)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:149229)
    at /packages/Hydrogen/dist/main.js:34:38)
    at /packages/Hydrogen/dist/main.js:456:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:149913)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:153507)
    at Module.load (internal/modules/cjs/loader.js:992:32)
    at Module._load (internal/modules/cjs/loader.js:885:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:72:18)
    at customRequire (/usr/share/atom/resources/app/static/<embedded>:1:756277)
    at requireModule (/usr/share/atom/resources/app/static/<embedded>:14:1205795)
    at Package.requireMainModule (/usr/share/atom/resources/app/static/<embedded>:11:3184054)
    at Package.activateNow (/usr/share/atom/resources/app/static/<embedded>:11:3172053)
    at /usr/share/atom/resources/app/static/<embedded>:14:1879
    at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1187641)
    at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1189082)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:352326)
    at KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:1228444)
    at KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/static/<embedded>:11:1224578)
    at WindowEventHandler.handleDocumentKeyEvent (/usr/share/atom/resources/app/static/<embedded>:11:286682)

Commands

     -7:28.2.0 hydrogen:run (input.hidden-input)

Non-Core Packages

atom-clock 0.1.18 
cell-navigation 0.1.0 
data-explorer 0.7.0 
file-icons 2.1.47 
Hydrogen 2.16.3 
hydrogen-cell-separator 0.4.1 
hydrogen-launcher 1.2.2 
hydrogen-python 0.0.8 
language-babel 2.85.0 
markdown-cell-highlight 1.2.0 
project-manager 3.3.8 
teletype 0.13.4 
Ermes-28 commented 2 years ago

same problem, did u fix it?

vandertilt commented 2 years ago

Same issue here, any ideas? For me the issue appeared after Hydrogen upgrade from 2.15.3 ->2.16.3 Unfortunately the issue remains after rollback to 2.15.3

antonscharton commented 2 years ago

Same here, I managed to fix it once by uninstalling and reinstalling atom again but now the issue is still present

sandrofsousa commented 2 years ago

Same here, it happened immediately after updating to atom 1.63.0 so the update is most likely responsible for breaking things.

Atom    : 1.63.0
Electron: 11.5.0
Chrome  : 87.0.4280.141
Node    : 12.18.3
macos: 12.6.1 (21G217)
hydrogen: 2.16.3
mariorossi1989 commented 2 years ago

Same here, it happened immediately after updating to atom 1.63.0 so the update is most likely responsible for breaking things.

Atom    : 1.63.0
Electron: 11.5.0
Chrome  : 87.0.4280.141
Node    : 12.18.3
macos: 12.6.1 (21G217)
hydrogen: 2.16.3

Same for me as well.

ehsan27770 commented 2 years ago

same for me:

Atom    : 1.63.0
Electron: 11.5.0
Chrome  : 107.0.5304.110
Node    : 12.18.3
macos: 13.0.1 
hydrogen: 2.16.3
Camilonfc commented 2 years ago

same problem, did u fix it?

Camilonfc commented 2 years ago

Hello @aminya, any news, how to solve this problem? thanks in advance.

danliu09 commented 2 years ago

the issue. any solution recommended? It was running OK this morning but suddenly not working

haleyk commented 2 years ago

same, having this problem appear between this morning and afternoon.

aminya commented 2 years ago

Atom is going to be sunsetted soon. It is not possible to publish new packages anymore. If you have your Atom working offline locally, it should continue to work, but the servers are down.

You can directly download the code from here, copy it to ~/.atom/packages/hydrogen and run apm install at the root https://github.com/nteract/hydrogen/archive/refs/tags/v2.16.4.zip

The changes are here: https://github.com/nteract/hydrogen/pull/2161

As someone who spent several years developing many of the IDE features for Atom, my recommendation is to use an alternative editor that has an active community around it. VsCode, Jetbrains IDEs like Pycharm, Webstorm, Clion, and Fleet to name a few. These have huge communities with officially supported plugins. Most of the programming languages and developer tools have official extensions for VSCode and Jetbrains. See my recommendation about the Hydrogen alternative: https://github.com/nteract/hydrogen/issues/2155#issuecomment-1151563694

vandertilt commented 2 years ago

Thanks alot @aminya! Atom + Hydrogen is an uncontested winner for anyone wrangling data! Guess I'll have to make do with moonshine for now.. Cheers!

camall3n commented 1 year ago

@aminya What does "run apm install at the root" mean? Which root?

aminya commented 1 year ago

At ~/.atom/packages/hydrogen

rubick1896 commented 1 year ago

@aminya Can you give instructions on how to install the new package on Windows?

aminya commented 1 year ago

The same instructions for all platforms

ekkal commented 1 year ago

@aminya What does "run apm install at the root" mean? Which root?

Were any of your able to install Hydrogen patch successfully? Agree to @vandertilt that Atom shines and especially so for someone working with data.

ekkal commented 1 year ago

@aminya What does "run apm install at the root" mean? Which root?

Were any of your able to install Hydrogen patch successfully? Agree to @vandertilt that Atom shines and especially so for someone working with data.

It indeed worked once the zip is extracted and after issuing the command apm install . Thanks @aminya .

I'm looking forward to using VSCode provided they have light table implementation for data viewing: https://nteract.gitbooks.io/hydrogen/content/