Atom: 1.42.0 x64
Electron: 4.2.7
OS: Microsoft Windows 10 Home
Thrown From: Hydrogen package 2.13.1
Uncaught SyntaxError: Invalid or unexpected token
At C:\Users\Tom\AppData\Local\atom\app-1.42.0\resources\app\static\<embedded>:11
C:\Users\Tom\.atom\packages\Hydrogen\node_modules\github-markdown-css\github-markdown.css:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { @font-face {
^
SyntaxError: Invalid or unexpected token
at new Script (vm.js:79:7)
at NativeCompileCache.runInThisContext (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:146322)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:147206)
at Object.value [as .js] (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:146745)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:18:1)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:31:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:147429)
at Object.value [as .js] (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:146745)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:6:43)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:11:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:147429)
at Object.value [as .js] (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:146745)
at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:13:36)
at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:27:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:147429)
[Enter steps to reproduce:]
Atom: 1.42.0 x64
Electron: 4.2.7
OS: Microsoft Windows 10 Pro
Thrown From: Hydrogen package 2.13.1
Uncaught SyntaxError: Invalid or unexpected token
At C:\Users\wilba\AppData\Local\atom\app-1.42.0\resources\app\static\<embedded>:11
C:\Users\wilba\.atom\packages\Hydrogen\node_modules\github-markdown-css\github-markdown.css:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { @font-face {
^
SyntaxError: Invalid or unexpected token
at new Script (vm.js:79:7)
at NativeCompileCache.runInThisContext (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:146322)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:147206)
at Object.value [as .js] (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:146745)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:18:1)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:31:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:147429)
at Object.value [as .js] (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:146745)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:6:43)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:11:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:147429)
at Object.value [as .js] (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:146745)
at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:13:36)
at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:27:3)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.42.0/resources/app/static/<embedded>:11:147429)
-9:13.4.0 application:open (atom-workspace.workspace.scrollbars-visible-always.theme-solarized-dark-syntax.theme-atom-dark-ui)
atom-material-syntax 1.0.8
Hydrogen 2.13.1
ide-python 1.5.0
kite 0.176.0
language-ini 1.23.0
python-tools 0.6.9
zentabs 0.8.9
I am hydrogen's maintainer and know most everything about the code base. Ever since v2.9 ironically the update I joined hydrogen, we use a more up to date package that is meant for a webpack context (which hydrogen is not). Because of this published versions of our dependencies can have errors that I have to deal with outside of hydrogen, but they require lots of work and or time which is why we specifically revert to v2.8 and why it takes so long to solve the issues.
Everyone will face this issue regardless of OS or kernel, so I have locked this for now (please also thumbs up issues in the future if you see them and do not have a new/useful info to add to the discussion). Thank you for reporting. Please temporarily use hydrogen 2.8.0 while I fix this install issue.
apm install [email protected]
Thank you - quick question, I have downgraded my python version from 3.8.0 to 3.7.6 and now receive this error C:\Users\...\Python\Python38\python.exe is not recognized as an internal or external command, operable program or batch file --> Is this an error being thrown by Hydrogen specifically not finding the change in Python version? Any suggestions on how to fix? Sorry for the newbie questions, but just starting to use Atom / Hydrogen. Edit: To clarify, python v 3.7.6 runs all ok from the terminal
@quertytam It has to do with your python path. Most of the time this is directly pulled from your system/user environment variable PYTHONPATH most likely you could change that 38 to a 37 as that is probably the correct directory, but it really just depends on how you installed python as there are a million different ways. But poython does have docs about the pythonpath var.
[Enter steps to reproduce:]
apmCtrl+Alt+Enter in Python fileAtom: 1.42.0 x64
Electron: 4.2.7
OS: Ubuntu 16.04.2
Thrown From: Hydrogen package 2.13.1
Failed to activate the Hydrogen package
At Invalid or unexpected token
/home/username/.atom/packages/Hydrogen/node_modules/github-markdown-css/github-markdown.css:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { @font-face {
^
SyntaxError: Invalid or unexpected token
at new Script (vm.js:79:7)
at NativeCompileCache.runInThisContext (/usr/share/atom/resources/app/static/<embedded>:11:146322)
at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147206)
at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (/usr/share/atom/resources/app/static/<embedded>:11:146745)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:18:1)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:31:3)
at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147429)
at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (/usr/share/atom/resources/app/static/<embedded>:11:146745)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:6:43)
at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:11:3)
at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147429)
at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (/usr/share/atom/resources/app/static/<embedded>:11:146745)
at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:13:36)
at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:27:3)
at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147429)
at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150977)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (/usr/share/atom/resources/app/static/<embedded>:11:146745)
...
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (internal/modules/cjs/helpers.js:20:18)
at customRequire (/usr/share/atom/resources/app/static/<embedded>:1:689402)
at Package.requireMainModule (/usr/share/atom/resources/app/static/<embedded>:11:3220707)
at Package.activateNow (/usr/share/atom/resources/app/static/<embedded>:11:3208691)
at activationCommandSubscriptions.add.commandRegistry.onWillDispatch.o (/usr/share/atom/resources/app/static/<embedded>:14:1879)
at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1211760)
at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1213201)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:349017)
at KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:1252387)
at KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/static/<embedded>:11:1248521)
at WindowEventHandler.handleDocumentKeyEvent (/usr/share/atom/resources/app/static/<embedded>:11:284591)
-2:10.3.0 hydrogen:run-cell (input.hidden-input)
atom-ide-ui 0.6.0
Hydrogen 2.13.1
hydrogen-launcher 1.2.2
hydrogen-python 0.0.8
ide-python 1.5.0
MagicPython 1.1.1
script 3.25.0
The font-face section looks like this
@font-face {
font-family: octicons-link;
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v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EVomeHLoMsAAe1Id4AAAAAAAB42oWQT07CQBTGv0JBhagk7HQzKxca2sJCE1hDt4QF+9JOS0nbaaYDCQfwCJ7Au3AHj+LO13FMmm6cl7785vven0kBjHCBhfpYuNa5Ph1c0e2Xu3jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format('woff');
}
UPDATE: Removed the font-face section and now getting this
At Unexpected token .
/home/nickdsc/.atom/packages/Hydrogen/node_modules/github-markdown-css/github-markdown.css:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { .markdown-body .octicon {
^
SyntaxError: Unexpected token .
at new Script (vm.js:79:7)
at NativeCompileCache.runInThisContext (/usr/share/atom/resources/app/static/<embedded>:11:146322)
at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147206)
at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150977)
3x -0:20 core:close (atom-pane.pane.active)
-0:15.9.0 hydrogen:run (input.hidden-input)
Hydrogen 2.13.1
Tried hacking these dependencies but still no fix.
"dependencies": {
"@babel/runtime-corejs2": "^7.0.0",
"@jupyterlab/services": "^0.52.0",
"@nteract/commutable": "^7.1.4",
"@nteract/markdown": "^4.3.1", // upgraded from 4.0.0
"@nteract/mathjax": "^4.0.1",
"@nteract/outputs": "^2.1.5",
"@nteract/plotly": "^1.48.3",
"@nteract/transform-vega": "^6.0.0",
"@nteract/presentational-components": "^3.3.1", // was missing
Same issue here
Same here, fresh python 3.7.6 with a new installation of Atom
Moreover, I can not uninstall it
`
Uninstalling “Hydrogen” failed.Hide output…
Das System kann den angegebenen Pfad nicht finden.
Failed to delete Hydrogen: EPERM: operation not permitted, unlink 'C:Usersuser.atompackagesHydrogennode_moduleszeromqbuildReleasezmq.node'
`
@wadethestealth re python path, I've installed and successfully run a simple 'hello world' script using the Atom package run-python-simply v0.6.0. My hypotheses is that Hydrogen is for some reason thinking that python v3.8.0 is still installed. I have been through my path settings, program folders, registry settings etc. to try and find any stray links to python v3.8.0. Any suggestions on how to test if Hydrogen is picking up python v3.8.0 instead of python v3.7.6?
new user here -I have the same issue with a fresh install
@jk31 that is a separate issue from this one. Normally this is caused by a program using or holding that file as a resource, most commonly disabling antivirus on hydrogen will solve most instances. @qwertytam then it is because your kernel.json has your kernel pointing to that python38. navigate to your kernel.json file from jupyter and modify the path to be the correct path.
@wadethestealth thank you! That fixed my issue. kernel.json is located in C:\Users\...\AppData\Roaming\jupyter\kernels\python3 for those looking to locate it.
Same issue with Atom(1.42.0), python(3.7.4) and Hydrogen(2.13.1)
I've just hit the same problem on ubuntu 19.10 with python 3.7 and hydrogen 2.13, am attempting downgrade to 2.8 of hydrogen.
same issue here
Close since this will be fixed in [email protected]
Most helpful comment
I am hydrogen's maintainer and know most everything about the code base. Ever since v2.9 ironically the update I joined hydrogen, we use a more up to date package that is meant for a webpack context (which hydrogen is not). Because of this published versions of our dependencies can have errors that I have to deal with outside of hydrogen, but they require lots of work and or time which is why we specifically revert to v2.8 and why it takes so long to solve the issues.
Everyone will face this issue regardless of OS or kernel, so I have locked this for now (please also thumbs up issues in the future if you see them and do not have a new/useful info to add to the discussion). Thank you for reporting. Please temporarily use hydrogen 2.8.0 while I fix this install issue.
apm install [email protected]