Open midsbie opened 2 years ago
When I toggle-debug-on-error
, I get the following error dump:
Debugger entered--Lisp error: (zmq-subprocess-error invalid-function (" Error: Wrong type argument: listp, #<subr jupyter..."))
signal(zmq-subprocess-error (invalid-function (" Error: Wrong type argument: listp, #<subr jupyter...")))
zmq--subprocess-filter(#<process zmq> "(error invalid-function (\" Error: Wrong type argum...")
accept-process-output(nil 0.25)
jupyter-ioloop-wait-until(#<jupyter-server-ioloop jupyter-server-ioloop-155a3b5b7dd8> start identity)
#f(compiled-function (arg1 arg2 &rest rest) #<bytecode 0x6f7c4c8acc9618e>)(#<jupyter-server-ioloop jupyter-server-ioloop-155a3b5b7dd8> #f(compiled-function (event) #<bytecode -0x7d4fdf1bd2230d>))
apply(#f(compiled-function (arg1 arg2 &rest rest) #<bytecode 0x6f7c4c8acc9618e>) #<jupyter-server-ioloop jupyter-server-ioloop-155a3b5b7dd8> #f(compiled-function (event) #<bytecode -0x7d4fdf1bd2230d>))
jupyter-ioloop-start(#<jupyter-server-ioloop jupyter-server-ioloop-155a3b5b7dd8> #f(compiled-function (event) #<bytecode -0x7d4fdf1bd2230d>))
#f(compiled-function (comm) #<bytecode 0x1f49ae75dbeabcbd>)(#<jupyter-server jupyter-server-155a3b6daa3c>)
apply(#f(compiled-function (comm) #<bytecode 0x1f49ae75dbeabcbd>) #<jupyter-server jupyter-server-155a3b6daa3c>)
#f(compiled-function (&rest cnm-args) #<bytecode -0x84dc6af3e363f20>)()
#f(compiled-function (cl--cnm comm) #<bytecode -0x16f3942056b565b9>)(#f(compiled-function (&rest cnm-args) #<bytecode -0x84dc6af3e363f20>) #<jupyter-server jupyter-server-155a3b6daa3c>)
apply(#f(compiled-function (cl--cnm comm) #<bytecode -0x16f3942056b565b9>) #f(compiled-function (&rest cnm-args) #<bytecode -0x84dc6af3e363f20>) #<jupyter-server jupyter-server-155a3b6daa3c>)
#f(compiled-function (&rest args) #<bytecode -0x14a4486b9fcac5fa>)(#<jupyter-server jupyter-server-155a3b6daa3c>)
apply(#f(compiled-function (&rest args) #<bytecode -0x14a4486b9fcac5fa>) #<jupyter-server jupyter-server-155a3b6daa3c> nil)
jupyter-comm-start(#<jupyter-server jupyter-server-155a3b6daa3c>)
#f(compiled-function (comm &rest ignore) "Register COMM to receive server events.\nIf SERVER receives events that have the same kernel ID as the\nkernel associated with COMM, then COMM's `jupyter-event-handler'\nwill receive those events." #<bytecode 0x117bb0b34a635b89>)(#<jupyter-server-kernel-comm jupyter-server-kernel-comm-155a3bdc5618>)
apply(#f(compiled-function (comm &rest ignore) "Register COMM to receive server events.\nIf SERVER receives events that have the same kernel ID as the\nkernel associated with COMM, then COMM's `jupyter-event-handler'\nwill receive those events." #<bytecode 0x117bb0b34a635b89>) #<jupyter-server-kernel-comm jupyter-server-kernel-comm-155a3bdc5618> nil)
jupyter-comm-start(#<jupyter-server-kernel-comm jupyter-server-kernel-comm-155a3bdc5618>)
#f(compiled-function (manager) "Start a websocket connection to MANAGER's kernel.\nMANAGER's COMM slot will be set to the `jupyter-comm-layer'\nreceiving events on the websocket when this method returns." #<bytecode -0x41d78d64cd27427>)(#<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4>)
apply(#f(compiled-function (manager) "Start a websocket connection to MANAGER's kernel.\nMANAGER's COMM slot will be set to the `jupyter-comm-layer'\nreceiving events on the websocket when this method returns." #<bytecode -0x41d78d64cd27427>) #<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4> nil)
jupyter-comm-start(#<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4>)
#f(compiled-function (manager class &rest slots) #<bytecode 0x1d100d0bab02d5fa>)(#f(compiled-function (&rest cnm-args) #<bytecode 0xa86dc1fdfd2487b>) #<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4> jupyter-repl-client)
apply(#f(compiled-function (manager class &rest slots) #<bytecode 0x1d100d0bab02d5fa>) #f(compiled-function (&rest cnm-args) #<bytecode 0xa86dc1fdfd2487b>) (#<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4> jupyter-repl-client))
#f(compiled-function (&rest args) #<bytecode 0x1e9f9963f2f82234>)(#<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4> jupyter-repl-client)
apply(#f(compiled-function (&rest args) #<bytecode 0x1e9f9963f2f82234>) (#<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4> jupyter-repl-client))
#f(compiled-function (&rest args) #<bytecode -0x158969df9a4c6a2a>)(#<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4> jupyter-repl-client)
apply(#f(compiled-function (&rest args) #<bytecode -0x158969df9a4c6a2a>) #<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4> jupyter-repl-client)
jupyter-make-client(#<jupyter-server-kernel-manager jupyter-server-kernel-manager-155a3baa55c4> jupyter-repl-client)
jupyter-connect-server-repl(#<jupyter-server jupyter-server-155a3b6daa3c> "b4975a59-01dd-4e73-b87f-fa0d99d9b31a" nil t nil t)
funcall-interactively(jupyter-connect-server-repl #<jupyter-server jupyter-server-155a3b6daa3c> "b4975a59-01dd-4e73-b87f-fa0d99d9b31a" nil t nil t)
command-execute(jupyter-connect-server-repl record)
execute-extended-command(nil "jupyter-connect-server-repl" nil)
funcall-interactively(execute-extended-command nil "jupyter-connect-server-repl" nil)
command-execute(execute-extended-command)
Same for me since I updated recently. Any updates @miguel-guedes Did you already try downgrading packages to see which version combination works?
Here are my versions: IPython : 8.4.0 ipykernel : 6.15.2 ipywidgets : 7.6.5 jupyter_client : 7.3.5 jupyter_core : 4.11.1 jupyter_server : 1.18.1 jupyterlab : 3.4.4
Jupyter server is much older than yours, so I suspect that the emacs-jupyter (or the emacs-zmq package) leads to this problem..
@miguel-guedes @moritzschaefer See issue #297 for a possible fix.
I already had "jupyter" and "zmq" on that list but I'll test whether the regex wildcards help
@moritzschaefer wildcards should fix it, without them it does not work.
I cannot seem to connect to my Jupyter server as, whenever I run M-x
jupyter-connect-server-repl
, an error in the ZMQ subprocess occurs.Errors I'm getting:
Relevant logs from Jupyter server (in Docker):
Running Jupyter Server v1.23.0 and JupyterLab 3.5.0.