Atom cant run hydrogen package :(

atom gives me an error as follows when I try to run hydrogen package to run simple code.

Here is my code:

Grant Tarbell

Lecture September 4, 2019

import turtle

window = turtle.Screen()

drawer = turtle.Turtle()
drawer.speed(0)

def east():
drawer.setheading(0)
drawer.forward(50)

def north():
drawer.setheading(90)
drawer.forward(50)

def west():
drawer.setheading(180)
drawer.forward(50)

def south():
drawer.setheading(270)
drawer.forward(50)

def right():
drawer.right(45)

def forward():
drawer.forward(50)

window.onkey(east, “Right”)
window.onkey(north, “Up”)
window.onkey(west, “Left”)
window.onkey(south, “Down”)
window.onkey(right, “r”)
window.onkey(right, “R”)
window.onkey(forward, “f”)
window.onkey(forward, “F”)

window.listen()

window.exitonclick()

And here is the error message:

Failed to activate the Hydrogen package

Cannot find module ‘@nteract/presentational-components’
Hide Stack Trace
Error: Cannot find module ‘@nteract/presentational-components’
at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/static/:11:155413)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:61:43)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:14:37)
at Object. (/Users/granttarbell/.atom/packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:29:3)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:13:36)
at Object. (/Users/granttarbell/.atom/packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:27:3)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/index.js:11:18)
at Object. (/Users/granttarbell/.atom/packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/index.js:20:3)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/Hydrogen/node_modules/@nteract/outputs/lib/index.js:24:28)
at Object. (/Users/granttarbell/.atom/packages/Hydrogen/node_modules/@nteract/outputs/lib/index.js:27:3)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/components/result-view/display.js:5:38)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/components/result-view/display.js:80:23)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/store/output.js:8:25)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/store/output.js:62:33)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/store/watch.js:3:30)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/store/watch.js:10:32)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/store/watches.js:5:43)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/store/watches.js:13:34)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/kernel.js:14:28)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/kernel.js:187:28)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/kernel-manager.js:7:37)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/kernel-manager.js:178:35)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/store/index.js:21:36)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/store/index.js:297:31)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/utils.js:10:30)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/utils.js:293:2)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/panes/inspector.js:5:26)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/panes/inspector.js:11:35)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146745)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/main.js:13:26)
at Object. (/Users/granttarbell/.atom/packages/hydrogen/lib/main.js:574:24)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147429)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/:11:150977)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
at Function.Module._load (internal/modules/cjs/loader.js:551:3)
at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:72:46)
at require (internal/modules/cjs/helpers.js:20:18)
at customRequire (/Applications/Atom.app/Contents/Resources/app/static/:1:688158)
at Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/static/:11:3307234)
at Package.activateNow (/Applications/Atom.app/Contents/Resources/app/static/:11:3295218)
at activationCommandSubscriptions.add.commandRegistry.onWillDispatch.o (/Applications/Atom.app/Contents/Resources/app/static/:14:1879)
at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:1209208)
at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/:11:1210649)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:348755)
at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:347598)
at AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/static/:1:718718)
at EventEmitter.t (/Applications/Atom.app/Contents/Resources/app/static/:1:726641)
at EventEmitter.emit (events.js:182:13)
The error was thrown from the Hydrogen package. This issue has already been reported.

I had the exact same error message today. I found a temporary solution by uninstalling hydrogen then reinstalling and older version using ‘apm install hydrogen@2.9.0’ in terminal. I’m on a Macbook btw.