nvim-ipy icon indicating copy to clipboard operation
nvim-ipy copied to clipboard

Signature mismatch

Open rsdenijs opened this issue 9 years ago • 10 comments

I can create a new seesion using :IPython (yay!) however, when creating a kernel using ipython kernel on the same machine and then using :IPython --existing kerne to communicate from my vim session the communication fails because of a signature mismatch

[Output from the actual kernel]

[IPKernelApp] ERROR | Invalid Message
Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/cross/local/lib/python2.7/site-packages/IPython/kernel/zmq/kernelbase.py", line 175, in dispatch_shell
    msg = self.session.deserialize(msg, content=True, copy=False)
  File "/home/ubuntu/.virtualenvs/cross/local/lib/python2.7/site-packages/IPython/kernel/zmq/session.py", line 836, in deserialize
    raise ValueError("Invalid Signature: %r" % signature)
ValueError: Invalid Signature: '51a7d95d58ae497bfb01d4d757d6f978585e9a543140d9d71d7d4ec51fdf7ecf'

I get the same error regardless of starting vim and the kernel in a virtualenv outside.

I can connect to the kernel using ipython console --existing kernel-XXXX.json What can be happening here?

rsdenijs avatar Sep 29 '15 17:09 rsdenijs

Can comfirm, will look into it tomorrow maybe.

bfredl avatar Sep 29 '15 18:09 bfredl

Same thing here.

languitar avatar Jan 12 '16 13:01 languitar

Me too..

Maltimore avatar Mar 20 '16 19:03 Maltimore

Hi, I am having exactly the same issue. Any progress so far? I usually create a new session with :IPython but I wanted to try a few things directly in the console...

jorgesca avatar May 04 '16 15:05 jorgesca

As a workaround, one can start a kernel with nvim-ipy, then use the %connect_info magic info to start the console|qtconsole|notebook

jorgesca avatar May 05 '16 13:05 jorgesca

Same here, cannot connect to a running kernel. This makes this unusable for me because I'm working with remote kernels, i.e. local kernels are not useful to me.

dmos62 avatar Jun 05 '16 21:06 dmos62

same problem here.

michaelfsp avatar Sep 06 '16 14:09 michaelfsp

+1. Initial post was 1 year ago though

dajuno avatar Sep 11 '16 17:09 dajuno

Sorry for the delay, this was a very subtle change in the initialization of ConsoleApp between IPython 3.x and Jupyter 4.x (but I don't understand why it only affected --existing and didn't make the plugin completely unusable...). Please try latest version.

bfredl avatar Sep 24 '16 12:09 bfredl

I tried today with current version and jupyter console 5.1.0 and it seems to be working back again. Thanks

jorgesca avatar Feb 10 '17 13:02 jorgesca