fiber-space / jupyter-kernel-jsr223

A JSR223 compliant Jupyter kernel implementation in Java
Apache License 2.0
61 stars 12 forks source link

kernel doesnt start #16

Open xalekx opened 5 years ago

xalekx commented 5 years ago

Like the title says the kernel doesnt load. Here is the debug log from the notebook

[D 09:51:55.034 NotebookApp] Accepting token-authenticated connection from 127.0.0.1 [D 09:51:55.040 NotebookApp] Using contents: services/contents [D 09:51:55.157 NotebookApp] Path base/images/favicon.ico served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/base/images/favicon.ico [D 09:51:55.157 NotebookApp] Path components/jquery-ui/themes/smoothness/jquery-ui.min.css served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css [D 09:51:55.157 NotebookApp] Path components/jquery-typeahead/dist/jquery.typeahead.min.css served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/jquery-typeahead/dist/jquery.typeahead.min.css [D 09:51:55.157 NotebookApp] Path style/style.min.css served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/style/style.min.css [D 09:51:55.158 NotebookApp] Path components/es6-promise/promise.min.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/es6-promise/promise.min.js [D 09:51:55.159 NotebookApp] Path components/preact/index.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/preact/index.js [D 09:51:55.159 NotebookApp] Path components/proptypes/index.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/proptypes/index.js [D 09:51:55.159 NotebookApp] Path components/preact-compat/index.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/preact-compat/index.js [D 09:51:55.159 NotebookApp] Path components/requirejs/require.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/requirejs/require.js [D 09:51:55.160 NotebookApp] Path base/images/logo.png served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/base/images/logo.png [D 09:51:55.160 NotebookApp] Path tree/js/main.min.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/tree/js/main.min.js [D 09:51:55.165 NotebookApp] 200 GET /tree?token=d4ee44439a9707ffcc3a558336e7d1f484afb334073c6864 (127.0.0.1) 132.19ms [D 09:51:55.203 NotebookApp] Path custom.css served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/custom/custom.css [D 09:51:55.205 NotebookApp] 304 GET /custom/custom.css (127.0.0.1) 2.49ms [D 09:51:55.426 NotebookApp] Path services/contents.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/services/contents.js [D 09:51:55.427 NotebookApp] 200 GET /static/services/contents.js?v=20190718095153 (127.0.0.1) 1.92ms [D 09:51:55.491 NotebookApp] Paths used for configuration of tree: /etc/jupyter/nbconfig/tree.json [D 09:51:55.492 NotebookApp] Paths used for configuration of tree: /usr/local/etc/jupyter/nbconfig/tree.json [D 09:51:55.492 NotebookApp] Paths used for configuration of tree: /usr/etc/jupyter/nbconfig/tree.json [D 09:51:55.493 NotebookApp] Paths used for configuration of tree: /home/aleksandar/.jupyter/nbconfig/tree.json [D 09:51:55.493 NotebookApp] 200 GET /api/config/tree?=1563436315398 (127.0.0.1) 5.03ms [D 09:51:55.496 NotebookApp] Paths used for configuration of common: /etc/jupyter/nbconfig/common.json [D 09:51:55.497 NotebookApp] Paths used for configuration of common: /usr/local/etc/jupyter/nbconfig/common.json [D 09:51:55.498 NotebookApp] Paths used for configuration of common: /usr/etc/jupyter/nbconfig/common.json [D 09:51:55.498 NotebookApp] Paths used for configuration of common: /home/aleksandar/.jupyter/nbconfig/common.json [D 09:51:55.499 NotebookApp] 200 GET /api/config/common?=1563436315399 (127.0.0.1) 4.26ms [D 09:51:55.501 NotebookApp] 200 GET /api/terminals?_=1563436315400 (127.0.0.1) 1.19ms [D 09:51:55.504 NotebookApp] Found kernel jythonkernel in /home/aleksandar/.local/share/jupyter/kernels [D 09:51:55.504 NotebookApp] Found kernel python2 in /home/aleksandar/.local/share/jupyter/kernels [D 09:51:55.507 NotebookApp] 304 GET /api/kernelspecs (127.0.0.1) 4.63ms [D 09:51:55.509 NotebookApp] 200 GET /api/terminals?=1563436315402 (127.0.0.1) 1.03ms [D 09:51:55.512 NotebookApp] 200 GET /api/sessions?=1563436315401 (127.0.0.1) 1.95ms [D 09:51:55.559 NotebookApp] Path custom.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/custom/custom.js [D 09:51:55.560 NotebookApp] 200 GET /custom/custom.js?v=20190718095153 (127.0.0.1) 2.60ms [D 09:51:55.586 NotebookApp] 200 GET /api/contents?type=directory&=1563436315403 (127.0.0.1) 11.15ms [I 09:51:58.222 NotebookApp] Creating new notebook in [D 09:51:58.229 NotebookApp] Saving /home/aleksandar/Untitled17.ipynb [D 09:51:58.254 NotebookApp] 201 POST /api/contents (127.0.0.1) 34.74ms [D 09:51:58.330 NotebookApp] Using contents: services/contents [D 09:51:58.424 NotebookApp] Path base/images/favicon-notebook.ico served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/base/images/favicon-notebook.ico [D 09:51:58.424 NotebookApp] Path components/bootstrap-tour/build/css/bootstrap-tour.min.css served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/bootstrap-tour/build/css/bootstrap-tour.min.css [D 09:51:58.424 NotebookApp] Path components/codemirror/lib/codemirror.css served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/codemirror/lib/codemirror.css [D 09:51:58.424 NotebookApp] Path notebook/css/override.css served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/notebook/css/override.css [D 09:51:58.636 NotebookApp] Paths used for configuration of notebook: /etc/jupyter/nbconfig/notebook.json [D 09:51:58.636 NotebookApp] Paths used for configuration of notebook: /usr/local/etc/jupyter/nbconfig/notebook.d/plotlywidget.json /usr/local/etc/jupyter/nbconfig/notebook.json [D 09:51:58.637 NotebookApp] Paths used for configuration of notebook: /usr/etc/jupyter/nbconfig/notebook.json [D 09:51:58.638 NotebookApp] Paths used for configuration of notebook: /home/aleksandar/.jupyter/nbconfig/notebook.json [D 09:51:58.891 NotebookApp] Path components/text-encoding/lib/encoding.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/text-encoding/lib/encoding.js [D 09:51:58.892 NotebookApp] Path notebook/js/main.min.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/notebook/js/main.min.js [D 09:51:58.900 NotebookApp] 200 GET /notebooks/Untitled17.ipynb?kernel_name=jython_kernel (127.0.0.1) 570.63ms [D 09:51:58.930 NotebookApp] Path components/MathJax/MathJax.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/MathJax/MathJax.js [D 09:51:58.931 NotebookApp] 304 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured (127.0.0.1) 3.45ms [D 09:51:58.942 NotebookApp] 304 GET /custom/custom.css (127.0.0.1) 2.09ms [D 09:51:58.983 NotebookApp] Path components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js [D 09:51:58.984 NotebookApp] 304 GET /static/components/MathJax/config/TeX-AMS-MMLHTMLorMML-full.js?V=2.7.5 (127.0.0.1) 1.51ms [D 09:51:59.106 NotebookApp] Path components/MathJax/config/Safe.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/MathJax/config/Safe.js [D 09:51:59.106 NotebookApp] 304 GET /static/components/MathJax/config/Safe.js?V=2.7.5 (127.0.0.1) 1.26ms [D 09:51:59.291 NotebookApp] Paths used for configuration of notebook: /etc/jupyter/nbconfig/notebook.json [D 09:51:59.292 NotebookApp] Paths used for configuration of notebook: /usr/local/etc/jupyter/nbconfig/notebook.d/plotlywidget.json /usr/local/etc/jupyter/nbconfig/notebook.json [D 09:51:59.293 NotebookApp] Paths used for configuration of notebook: /usr/etc/jupyter/nbconfig/notebook.json [D 09:51:59.293 NotebookApp] Paths used for configuration of notebook: /home/aleksandar/.jupyter/nbconfig/notebook.json [D 09:51:59.294 NotebookApp] 200 GET /api/config/notebook?=1563436319147 (127.0.0.1) 3.87ms [D 09:51:59.296 NotebookApp] Paths used for configuration of common: /etc/jupyter/nbconfig/common.json [D 09:51:59.297 NotebookApp] Paths used for configuration of common: /usr/local/etc/jupyter/nbconfig/common.json [D 09:51:59.297 NotebookApp] Paths used for configuration of common: /usr/etc/jupyter/nbconfig/common.json [D 09:51:59.298 NotebookApp] Paths used for configuration of common: /home/aleksandar/.jupyter/nbconfig/common.json [D 09:51:59.298 NotebookApp] 200 GET /api/config/common?_=1563436319148 (127.0.0.1) 3.58ms [D 09:51:59.330 NotebookApp] Path components/MathJax/extensions/MathML/content-mathml.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/MathJax/extensions/MathML/content-mathml.js [D 09:51:59.331 NotebookApp] 304 GET /static/components/MathJax/extensions/MathML/content-mathml.js?V=2.7.5 (127.0.0.1) 1.50ms [D 09:51:59.363 NotebookApp] Found kernel jythonkernel in /home/aleksandar/.local/share/jupyter/kernels [D 09:51:59.363 NotebookApp] Found kernel python2 in /home/aleksandar/.local/share/jupyter/kernels [D 09:51:59.365 NotebookApp] 304 GET /api/kernelspecs (127.0.0.1) 2.71ms [D 09:51:59.428 NotebookApp] 200 GET /api/contents/Untitled17.ipynb?type=notebook&=1563436319149 (127.0.0.1) 9.19ms [D 09:51:59.431 NotebookApp] 304 GET /custom/custom.js?v=20190718095153 (127.0.0.1) 1.49ms [D 09:51:59.434 NotebookApp] Path components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js [D 09:51:59.434 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js?V=2.7.5 (127.0.0.1) 1.53ms [D 09:51:59.445 NotebookApp] Path plotlywidget/extension.js served from /usr/local/share/jupyter/nbextensions/plotlywidget/extension.js [D 09:51:59.446 NotebookApp] 200 GET /nbextensions/plotlywidget/extension.js?v=20190718095153 (127.0.0.1) 2.02ms [D 09:51:59.541 NotebookApp] 200 GET /api/contents/Untitled17.ipynb/checkpoints?_=1563436319150 (127.0.0.1) 1.40ms [D 09:51:59.568 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-cffce184-b60a-422b-bb94-02bcae202639.json'] [D 09:51:59.576 NotebookApp] Connecting to: tcp://127.0.0.1:49587 [D 09:51:59.578 NotebookApp] Connecting to: tcp://127.0.0.1:59771 [I 09:51:59.580 NotebookApp] Kernel started: cffce184-b60a-422b-bb94-02bcae202639 [D 09:51:59.580 NotebookApp] Kernel args: {'kernel_name': u'jython_kernel', 'cwd': u'/home/aleksandar'} [D 09:51:59.582 NotebookApp] 201 POST /api/sessions (127.0.0.1) 33.72ms [D 09:51:59.585 NotebookApp] Path components/MathJax/extensions/Safe.js served from /home/aleksandar/.local/lib/python2.7/site-packages/notebook/static/components/MathJax/extensions/Safe.js [D 09:51:59.586 NotebookApp] 304 GET /static/components/MathJax/extensions/Safe.js?V=2.7.5 (127.0.0.1) 1.88ms [D 09:51:59.603 NotebookApp] Initializing websocket connection /api/kernels/cffce184-b60a-422b-bb94-02bcae202639/channels [D 09:51:59.606 NotebookApp] Requesting kernel info from cffce184-b60a-422b-bb94-02bcae202639 [D 09:51:59.607 NotebookApp] Connecting to: tcp://127.0.0.1:56775 [D 09:51:59.675 NotebookApp] Using contents: services/contents Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [W 09:51:59.689 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20190718095153 (127.0.0.1) 16.99ms referer=http://localhost:8889/notebooks/Untitled17.ipynb?kernel_name=jython_kernel [I 09:52:02.578 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports [D 09:52:02.582 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-cffce184-b60a-422b-bb94-02bcae202639.json'] [D 09:52:02.595 NotebookApp] Connecting to: tcp://127.0.0.1:50309 Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [I 09:52:05.598 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports [D 09:52:05.601 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-cffce184-b60a-422b-bb94-02bcae202639.json'] [D 09:52:05.612 NotebookApp] Connecting to: tcp://127.0.0.1:35869 Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [I 09:52:08.614 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports [D 09:52:08.617 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-cffce184-b60a-422b-bb94-02bcae202639.json'] [D 09:52:08.627 NotebookApp] Connecting to: tcp://127.0.0.1:56131 Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [I 09:52:11.630 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports [D 09:52:11.632 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-cffce184-b60a-422b-bb94-02bcae202639.json'] [D 09:52:11.642 NotebookApp] Connecting to: tcp://127.0.0.1:52167 Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [W 09:52:14.645 NotebookApp] KernelRestarter: restart failed [W 09:52:14.645 NotebookApp] Kernel cffce184-b60a-422b-bb94-02bcae202639 died, removing from map. [D 09:52:31.752 NotebookApp] 200 GET /api/sessions?=1563436315404 (127.0.0.1) 5.10ms [D 09:52:31.755 NotebookApp] Websocket closed cffce184-b60a-422b-bb94-02bcae202639:073747155ccf4f1593420ecbd12a4c78 [D 09:52:31.760 NotebookApp] 200 GET /api/terminals?=1563436315405 (127.0.0.1) 3.43ms [D 09:52:31.800 NotebookApp] 200 GET /api/contents?type=directory&=1563436315406 (127.0.0.1) 26.72ms [D 09:52:48.957 NotebookApp] 200 GET /api/sessions?=1563436315407 (127.0.0.1) 2.94ms [D 09:52:48.961 NotebookApp] 200 GET /api/terminals?=1563436315408 (127.0.0.1) 1.84ms [D 09:52:48.991 NotebookApp] 200 GET /api/contents?type=directory&=1563436315409 (127.0.0.1) 19.55ms [I 09:52:51.825 NotebookApp] Creating new notebook in [D 09:52:51.830 NotebookApp] Saving /home/aleksandar/Untitled18.ipynb [D 09:52:51.857 NotebookApp] 201 POST /api/contents (127.0.0.1) 34.59ms [D 09:52:51.916 NotebookApp] Using contents: services/contents [D 09:52:52.013 NotebookApp] Paths used for configuration of notebook: /etc/jupyter/nbconfig/notebook.json [D 09:52:52.014 NotebookApp] Paths used for configuration of notebook: /usr/local/etc/jupyter/nbconfig/notebook.d/plotlywidget.json /usr/local/etc/jupyter/nbconfig/notebook.json [D 09:52:52.014 NotebookApp] Paths used for configuration of notebook: /usr/etc/jupyter/nbconfig/notebook.json [D 09:52:52.015 NotebookApp] Paths used for configuration of notebook: /home/aleksandar/.jupyter/nbconfig/notebook.json [D 09:52:52.248 NotebookApp] 200 GET /notebooks/Untitled18.ipynb?kernel_name=jython_kernel (127.0.0.1) 332.86ms [D 09:52:52.274 NotebookApp] 304 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured (127.0.0.1) 1.64ms [D 09:52:52.286 NotebookApp] 304 GET /custom/custom.css (127.0.0.1) 3.61ms [D 09:52:52.408 NotebookApp] 304 GET /static/components/MathJax/config/TeX-AMS-MMLHTMLorMML-full.js?V=2.7.5 (127.0.0.1) 1.73ms [D 09:52:52.572 NotebookApp] 304 GET /static/components/MathJax/config/Safe.js?V=2.7.5 (127.0.0.1) 1.84ms [D 09:52:52.754 NotebookApp] Paths used for configuration of notebook: /etc/jupyter/nbconfig/notebook.json [D 09:52:52.754 NotebookApp] Paths used for configuration of notebook: /usr/local/etc/jupyter/nbconfig/notebook.d/plotlywidget.json /usr/local/etc/jupyter/nbconfig/notebook.json [D 09:52:52.755 NotebookApp] Paths used for configuration of notebook: /usr/etc/jupyter/nbconfig/notebook.json [D 09:52:52.756 NotebookApp] Paths used for configuration of notebook: /home/aleksandar/.jupyter/nbconfig/notebook.json [D 09:52:52.756 NotebookApp] 200 GET /api/config/notebook?=1563436372596 (127.0.0.1) 3.99ms [D 09:52:52.758 NotebookApp] Paths used for configuration of common: /etc/jupyter/nbconfig/common.json [D 09:52:52.759 NotebookApp] Paths used for configuration of common: /usr/local/etc/jupyter/nbconfig/common.json [D 09:52:52.759 NotebookApp] Paths used for configuration of common: /usr/etc/jupyter/nbconfig/common.json [D 09:52:52.760 NotebookApp] Paths used for configuration of common: /home/aleksandar/.jupyter/nbconfig/common.json [D 09:52:52.760 NotebookApp] 200 GET /api/config/common?_=1563436372597 (127.0.0.1) 3.26ms [D 09:52:52.792 NotebookApp] 304 GET /static/components/MathJax/extensions/MathML/content-mathml.js?V=2.7.5 (127.0.0.1) 1.08ms [D 09:52:52.823 NotebookApp] Found kernel jythonkernel in /home/aleksandar/.local/share/jupyter/kernels [D 09:52:52.824 NotebookApp] Found kernel python2 in /home/aleksandar/.local/share/jupyter/kernels [D 09:52:52.825 NotebookApp] 304 GET /api/kernelspecs (127.0.0.1) 2.67ms [D 09:52:52.847 NotebookApp] 200 GET /api/contents/Untitled18.ipynb?type=notebook&=1563436372598 (127.0.0.1) 5.26ms [D 09:52:52.851 NotebookApp] 304 GET /custom/custom.js?v=20190718095153 (127.0.0.1) 1.69ms [D 09:52:52.857 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js?V=2.7.5 (127.0.0.1) 1.02ms [D 09:52:52.933 NotebookApp] 200 GET /api/contents/Untitled18.ipynb/checkpoints?_=1563436372599 (127.0.0.1) 1.27ms [D 09:52:52.938 NotebookApp] 304 GET /nbextensions/plotlywidget/extension.js?v=20190718095153 (127.0.0.1) 1.11ms [D 09:52:52.980 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-badc65e6-d32f-4a07-befd-b778cc4f15f3.json'] [D 09:52:52.987 NotebookApp] Connecting to: tcp://127.0.0.1:60375 [D 09:52:52.989 NotebookApp] Connecting to: tcp://127.0.0.1:52641 [I 09:52:52.992 NotebookApp] Kernel started: badc65e6-d32f-4a07-befd-b778cc4f15f3 [D 09:52:52.992 NotebookApp] Kernel args: {'kernel_name': u'jython_kernel', 'cwd': u'/home/aleksandar'} [D 09:52:52.993 NotebookApp] 201 POST /api/sessions (127.0.0.1) 17.92ms [D 09:52:53.011 NotebookApp] 304 GET /static/components/MathJax/extensions/Safe.js?V=2.7.5 (127.0.0.1) 2.22ms [D 09:52:53.062 NotebookApp] Initializing websocket connection /api/kernels/badc65e6-d32f-4a07-befd-b778cc4f15f3/channels [D 09:52:53.066 NotebookApp] Requesting kernel info from badc65e6-d32f-4a07-befd-b778cc4f15f3 [D 09:52:53.066 NotebookApp] Connecting to: tcp://127.0.0.1:46523 Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [D 09:52:53.125 NotebookApp] Using contents: services/contents [W 09:52:53.127 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20190718095153 (127.0.0.1) 3.67ms referer=http://localhost:8889/notebooks/Untitled18.ipynb?kernel_name=jython_kernel [I 09:52:55.990 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports [D 09:52:55.992 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-badc65e6-d32f-4a07-befd-b778cc4f15f3.json'] [D 09:52:56.004 NotebookApp] Connecting to: tcp://127.0.0.1:56033 Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [I 09:52:59.006 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports [D 09:52:59.008 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-badc65e6-d32f-4a07-befd-b778cc4f15f3.json'] [D 09:52:59.019 NotebookApp] Connecting to: tcp://127.0.0.1:44927 Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [W 09:52:59.608 NotebookApp] Timeout waiting for kernel_info reply from cffce184-b60a-422b-bb94-02bcae202639 [D 09:52:59.611 NotebookApp] 101 GET /api/kernels/cffce184-b60a-422b-bb94-02bcae202639/channels?session_id=073747155ccf4f1593420ecbd12a4c78 (127.0.0.1) 60007.56ms [D 09:52:59.612 NotebookApp] Opening websocket /api/kernels/cffce184-b60a-422b-bb94-02bcae202639/channels [D 09:52:59.612 NotebookApp] Getting buffer for cffce184-b60a-422b-bb94-02bcae202639 [E 09:52:59.612 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: cffce184-b60a-422b-bb94-02bcae202639) [I 09:53:02.020 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports [D 09:53:02.023 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-badc65e6-d32f-4a07-befd-b778cc4f15f3.json'] [D 09:53:02.034 NotebookApp] Connecting to: tcp://127.0.0.1:33009 Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [I 09:53:05.035 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports [D 09:53:05.037 NotebookApp] Starting kernel: [u'java', u'-classpath', u'/usr/local/lib/jython/jython.jar:/home/aleksandar/work/jupyter-kernels/jupyter-kernel-jsr223/target/jupyter-kernel-jsr223.jar', u'org.jupyterkernel.kernel.Session', u'-k', u'python', u'-f', u'/home/aleksandar/.local/share/jupyter/runtime/kernel-badc65e6-d32f-4a07-befd-b778cc4f15f3.json'] [D 09:53:05.049 NotebookApp] Connecting to: tcp://127.0.0.1:57755 Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException [W 09:53:08.052 NotebookApp] KernelRestarter: restart failed [W 09:53:08.053 NotebookApp] Kernel badc65e6-d32f-4a07-befd-b778cc4f15f3 died, removing from map. [W 09:53:53.090 NotebookApp] Timeout waiting for kernel_info reply from badc65e6-d32f-4a07-befd-b778cc4f15f3 [D 09:53:53.093 NotebookApp] 101 GET /api/kernels/badc65e6-d32f-4a07-befd-b778cc4f15f3/channels?sessionid=cec935f910784b51a9d8530b92b048c4 (127.0.0.1) 60031.81ms [D 09:53:53.093 NotebookApp] Opening websocket /api/kernels/badc65e6-d32f-4a07-befd-b778cc4f15f3/channels [D 09:53:53.094 NotebookApp] Getting buffer for badc65e6-d32f-4a07-befd-b778cc4f15f3 [E 09:53:53.094 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: badc65e6-d32f-4a07-befd-b778cc4f15f3) [D 09:53:53.096 NotebookApp] Websocket closed badc65e6-d32f-4a07-befd-b778cc4f15f3:cec935f910784b51a9d8530b92b048c4 [D 09:54:40.643 NotebookApp] 200 GET /api/sessions?=1563436315410 (127.0.0.1) 4.78ms [D 09:54:40.658 NotebookApp] 200 GET /api/terminals?=1563436315411 (127.0.0.1) 3.64ms [D 09:54:40.696 NotebookApp] 200 GET /api/contents?type=directory&=1563436315412 (127.0.0.1) 29.04ms [D 09:54:45.180 NotebookApp] 200 GET /api/contents/Untitled18.ipynb?content=0&=1563436372600 (127.0.0.1) 5.14ms [I 09:54:45.201 NotebookApp] Saving file at /Untitled18.ipynb [D 09:54:45.202 NotebookApp] Saving /home/aleksandar/Untitled18.ipynb [D 09:54:45.239 NotebookApp] 200 PUT /api/contents/Untitled18.ipynb (127.0.0.1) 40.75ms [D 10:00:17.710 NotebookApp] 200 GET /api/sessions?=1563436315413 (127.0.0.1) 2.23ms [D 10:00:17.713 NotebookApp] 200 GET /api/terminals?=1563436315414 (127.0.0.1) 1.74ms [D 10:00:17.771 NotebookApp] 200 GET /api/contents?type=directory&=1563436315415 (127.0.0.1) 17.69ms

@fiber-space

opeongo commented 1 year ago

The important part of the error message is here:

Error: Unable to initialize main class org.jupyterkernel.kernel.Session Caused by: java.lang.NoClassDefFoundError: org/zeromq/ZMQException

When the kernel is launched it is not finding the zeromq class. You need to add the jeromq-0.3.6 jar file to your classpath, as well as the commons-cli-1.2.jar and json.jar. I don't know why the documentation does not note this.