emacs-jupyter / jupyter

An interface to communicate with Jupyter kernels.
GNU General Public License v3.0
914 stars 89 forks source link

unable to start kernel #517

Closed uliw closed 4 months ago

uliw commented 7 months ago

This is on linux 6.6.1-1-default , with emacs 29.1, and native compilation disabled for jupyter and zmq

executing jupyetr-run-repl I get the following errors:

Debugger entered--Lisp error: (cl-assertion-failed ((jupyter-alive-p kernel) nil)) cl--assertion-failed((jupyter-alive-p kernel))

f(compiled-function (kernel) "Launch KERNEL." #<bytecode -0x19ff556f6f4d8774>)(#)

apply(#f(compiled-function (kernel) "Launch KERNEL." #<bytecode -0x19ff556f6f4d8774>) #)

f(compiled-function (&rest args) #<bytecode -0x248da0dc84440ad>)()

f(compiled-function (cl--cnm kernel) #<bytecode -0x1591feae629f549f>)(#f(compiled-function (&rest args) #<bytecode -0x248da0dc84440ad>) #)

apply(#f(compiled-function (cl--cnm kernel) #<bytecode -0x1591feae629f549f>) #f(compiled-function (&rest args) #<bytecode -0x248da0dc84440ad>) #)

f(compiled-function (kernel) "Start KERNEL's process.\nDo nothing if KERNEL's process is already live.\n\nThe process arguments are constructed from KERNEL's SPEC. The\nconnection file passed as argument to the process is first\nwritten to file, its contents are generated from KERNEL's SESSION\nslot.\n\nSee also https://jupyter-client.readthedocs.io/en/stable/kernels.html#kernel-specs" #<bytecode 0x608e45ff1710597>)(#)

apply(#f(compiled-function (kernel) "Start KERNEL's process.\nDo nothing if KERNEL's process is already live.\n\nThe process arguments are constructed from KERNEL's SPEC. The\nconnection file passed as argument to the process is first\nwritten to file, its contents are generated from KERNEL's SESSION\nslot.\n\nSee also https://jupyter-client.readthedocs.io/en/stable/kernels.html#kernel-specs" #<bytecode 0x608e45ff1710597>) #)

f(compiled-function (&rest args) #<bytecode -0x1f7b3412da8598c8>)(#)

apply(#f(compiled-function (&rest args) #<bytecode -0x1f7b3412da8598c8>) # nil) jupyter-launch(#)

f(compiled-function (kernel) #<bytecode -0xe57ee42816c06ee>)(#)

apply(#f(compiled-function (kernel) #<bytecode -0xe57ee42816c06ee>) # nil) jupyter-zmq-io(#)

f(compiled-function (kernel) "Return an I/O connection to KERNEL's session." #<bytecode 0x19daa84355ab3f7d>)(#)

apply(#f(compiled-function (kernel) "Return an I/O connection to KERNEL's session." #<bytecode 0x19daa84355ab3f7d>) #)

f(compiled-function (&rest args) #<bytecode -0x16a95ca5bd3c506d>)()

f(compiled-function (cl--cnm thing) #<bytecode -0xd73aaa0a671e274>)(#f(compiled-function (&rest args) #<bytecode -0x16a95ca5bd3c506d>) #)

apply(#f(compiled-function (cl--cnm thing) #<bytecode -0xd73aaa0a671e274>) #f(compiled-function (&rest args) #<bytecode -0x16a95ca5bd3c506d>) #)

f(compiled-function (thing) "Cache the I/O object of THING in `jupyter-io-cache'." #<bytecode -0x18ec68cf03b592bc>)(#)

apply(#f(compiled-function (thing) "Cache the I/O object of THING in `jupyter-io-cache'." #<bytecode -0x18ec68cf03b592bc>) # nil) jupyter-io(#)

f(compiled-function (kernel &optional client-class) #<bytecode -0x57bd66f05c1aab9>)(# jupyter-repl-client)

apply(#f(compiled-function (kernel &optional client-class) #<bytecode -0x57bd66f05c1aab9>) # jupyter-repl-client) jupyter-client(# jupyter-repl-client) jupyter-run-repl("python3.11" nil t nil t) funcall-interactively(jupyter-run-repl "python3.11" nil t nil t) command-execute(jupyter-run-repl record) helm-M-x-execute-command(jupyter-run-repl) helm-execute-selection-action-1() helm-execute-selection-action() helm-internal((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1563f4ef6997dd53>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x1980218e33f280>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980218e32e280>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980218e34d280>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980218e35c280>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980218e51b280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980218e50a280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980218e309280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980218e318280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980218e577280>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980218e566280>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980218e5a5280>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980218e5b4280>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort # helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("C-j: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0xc5de3deb6d76430>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode 0x1b0f07dec881a795>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x1980218e33f280>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980218e32e280>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980218e34d280>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980218e35c280>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980218e51b280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980218e50a280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980218e309280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980218e318280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980218e577280>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980218e566280>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980218e5a5280>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980218e5b4280>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort # helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("C-j: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0x17e219cde430ed5a>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "helm M-x" nil nil helm-M-x-input-history) helm((((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1563f4ef6997dd53>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x1980218e33f280>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980218e32e280>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980218e34d280>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980218e35c280>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980218e51b280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980218e50a280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980218e309280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980218e318280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980218e577280>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980218e566280>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980218e5a5280>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980218e5b4280>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort # helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("C-j: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0xc5de3deb6d76430>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode 0x1b0f07dec881a795>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x1980218e33f280>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980218e32e280>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980218e34d280>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980218e35c280>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980218e51b280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980218e50a280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980218e309280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980218e318280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980218e577280>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980218e566280>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980218e5a5280>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980218e5b4280>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort # helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("C-j: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0x17e219cde430ed5a>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) nil "M-x " nil nil "helm M-x" nil nil helm-M-x-input-history) helm(:sources (((name . "Emacs Commands history") (init #f(compiled-function () #<bytecode 0x1563f4ef6997dd53>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x1980218e33f280>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980218e32e280>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980218e34d280>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980218e35c280>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980218e51b280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980218e50a280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980218e309280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980218e318280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980218e577280>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980218e566280>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980218e5a5280>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980218e5b4280>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort # helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("C-j: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0xc5de3deb6d76430>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search)) ((name . "Emacs Commands") (init #f(compiled-function () #<bytecode 0x1b0f07dec881a795>)) (candidates . helm-candidates-in-buffer) (cleanup . helm-M-x--unwind-forms) (keymap keymap (keymap ...) keymap (29 . helm-M-x-toggle-short-doc) (21 . helm-M-x-universal-argument) keymap (27 keymap ...) (C-return . helm-cr-empty-string) keymap (tab . helm-execute-persistent-action) (f12 . #f(compiled-function () ... #<bytecode 0x1980218e33f280>)) (f11 . #f(compiled-function () ... #<bytecode 0x1980218e32e280>)) (f10 . #f(compiled-function () ... #<bytecode 0x1980218e34d280>)) (f9 . #f(compiled-function () ... #<bytecode 0x1980218e35c280>)) (f8 . #f(compiled-function () ... #<bytecode 0x1980218e51b280>)) (f7 . #f(compiled-function () ... #<bytecode 0x1980218e50a280>)) (f6 . #f(compiled-function () ... #<bytecode 0x1980218e309280>)) (f5 . #f(compiled-function () ... #<bytecode 0x1980218e318280>)) (f4 . #f(compiled-function () ... #<bytecode 0x1980218e577280>)) (f3 . #f(compiled-function () ... #<bytecode 0x1980218e566280>)) (f2 . #f(compiled-function () ... #<bytecode 0x1980218e5a5280>)) (menu-bar keymap ...) (help keymap ...) (23 . helm-helm-yank-text-at-point-with-subkeys) (f1 . #f(compiled-function () ... #<bytecode 0x1980218e5b4280>)) (8 keymap ... ... ... ... ... ...) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (67108987 . helm-enlarge-window) ...) (action . helm-type-command-actions) (persistent-action . helm-M-x-persistent-action) (persistent-help . "Describe this command") (help-message . helm-M-x-help-message) (requires-pattern . 0) (filtered-candidate-transformer helm-M-x-transformer-no-sort # helm-fuzzy-highlight-matches) (volatile . t) (match identity) (fuzzy-match . t) (redisplay . identity) (nomark . t) (coerce . helm-symbolify) (header-line . #("C-j: Describe this command (keep..." 0 3 ...)) (resume . helm-M-x-resume-fn) (multimatch . t) (must-match . t) (group . helm-command) (data . #f(compiled-function () #<bytecode -0x17e219cde430ed5a>)) (get-line . buffer-substring-no-properties) (search helm-mm-exact-search helm-mm-search helm-candidates-in-buffer-search-default-fn helm-fuzzy-search))) :prompt "M-x " :buffer "helm M-x" :history helm-M-x-input-history :truncate-lines t) helm-M-x-read-extended-command([djvu-coord-xy-re lsp-make-signature-help-options lsp-ui-imenu-window-fix-width lsp:omnisharp-run-tests-in-class-request-column grammarly--kill-websocket tramp-completion-handle-file-name-all-completions Set\ Slice lsp-ui-doc-hide table-source-caption-history org-roam-ui--get-cites ob-session-async-R-indicator magit-revision-filter-files-on-follow helm-completing-read-inbuffer-default-handler c-state-min-scan-pos tightly org-gantt-substring-if rng-parse-validate-file magit-xref-insert-button Operate\ on\ annotations\ layer gnus-agent-group-covered-p org-roam-ui--get-nodes lsp-perlnavigator org-habit-scheduled :EndLineNumber scimax-org-autoformat-transposed-caps nnoo-map-functions gnus-try-warping-via-registry org-rst-inline-image-rules :where which-key--stop-timer org-tree-slide--update-modeline flycheck-pug-executable dircolors-face-ps org-table-get-range content-file WatchKind lsp:set-rename-params-uri? nnimap-status-message lsp-ui-find-workspace-symbol lsp--virtual-buffer lsp:set-server-capabilities-document-symbol-provider? org-roam-ui-after-open-node-functions dash-expand:&JSONResponse? server--on-display-p lsp:set-file-operation-pattern-options? lsp-inlay-hint-face core-accessing-symbol transient:magit-log:--dense bibtex-text-in-string python-docstring-figure-out-indentation ...])

uliw commented 4 months ago

see https://github.com/emacs-jupyter/jupyter/issues/464#issuecomment-1937499393