Open JonatanSahar opened 4 months ago
I have been affected from a similar error:
error in process filter: zmq--subprocess-filter: Error in ZMQ subprocess: error, ("Invalid signature (5871e47b524943ce283666c67e790c8021c672b146a5d73f667db13cea64e7ef) for parts (\"{\\"msg_id\\": \\"3d41ede7-4778abad688ac883c92f7987_7237_5\\", \\"msg_type\\": \\"stream\\", \\"username\\": \\"main\\", \\"session\\": \\"3d41ede7-4778abad688ac883c92f7987\\", \\"date\\": \\"2024-04-01T15:24:51.429056Z\\", \\"version\\": \\"5.3\\"}\" \"{}\" \"{}\" \"{\\"name\\": \\"stderr\\", \\"text\\": \\"--- Logging error ---\\nTraceback (most recent call last):\\n File \\\\"/usr/lib/python3.11/site-packages/ipykernel/kernelbase.py\\\\", line 395, in dispatch_shell\\n msg = self.session.deserialize(msg, content=True, copy=False)\\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n File \\\\"/usr/lib/python3.11/site-packages/jupyter_client/session.py\\\\", line 1074, in deserialize\\n raise ValueError(msg)\\nValueError: Invalid Signature: b'ff2d99912628331910ff0eed61c7cf092b2bf56c54ec61890c1511a8e3aee0db'\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \\\\"/usr/lib/python3.11/logging/init.py\\\\", line 1114, in emit\\n self.flush()\\n File \\\\"/usr/lib/python3.11/logging/init.py\\\\", line 1094, in flush\\n self.stream.flush()\\nOSError: [Errno 5] Input/output error\\nCall stack:\\n File \\\\"
\\\\", line 198, in _run_module_as_main\\n File \\\\" \\\\", line 88, in _run_code\\n File \\\\"/usr/lib/python3.11/site-packages/ipykernel_launcher.py\\\\", line 18, in \\n app.launch_new_instance()\\n File \\\\"/usr/lib/python3.11/site-packages/traitlets/config/application.py\\\\", line 1075, in launch_instance\\n app.start()\\n File \\\\"/usr/lib/python3.11/site-packages/ipykernel/kernelapp.py\\\\", line 739, in start\\n self.io_loop.start()\\n File \\\\"/usr/lib/python3.11/site-packages/tornado/platform/asyncio.py\\\\", line 195, in start\\n self.asyncio_loop.run_forever()\\n File \\\\"/usr/lib/python3.11/asyncio/base_events.py\\\\", line 608, in run_forever\\n self._run_once()\\n File \\\\"/usr/lib/python3.11/asyncio/base_events.py\\\\", line 1936, in _run_once\\n handle._run()\\n File \\\\"/usr/lib/python3.11/asyncio/events.py\\\\", line 84, in _run\\n self._context.run(self._callback, self._args)\\n File \\\\"/usr/lib/python3.11/site-packages/ipykernel/kernelbase.py\\\\", line 545, in dispatch_queue\\n await self.process_one()\\n File \\\\"/usr/lib/python3.11/site-packages/ipykernel/kernelbase.py\\\\", line 534, in process_one\\n await dispatch(args)\\n File \\\\"/usr/lib/python3.11/site-packages/ipykernel/kernelbase.py\\\\", line 397, in dispatch_shell\\n self.log.error(\\\\"Invalid Message\\\\", exc_info=True) # noqa: G201\\nMessage: 'Invalid Message'\\nArguments: ()\\n\\"}\")")
In my case, the error is related to a systemd update. It happens when I invoke emacs as a daemon using systemd
In my case I had to build emacs from source, since the snap emacs didn't have enough permissions to alter the libraries zmq was linking to, or some such nonsense. I don't recall exactly
On Wed, 3 Apr 2024 at 21:26, Monish Singhal @.***> wrote:
Any way around other than manually reopening Emacs?
— Reply to this email directly, view it on GitHub https://github.com/emacs-jupyter/jupyter/issues/527#issuecomment-2035304795, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEL3S3EZC4C5BCTIWAM3EUTY3RCVTAVCNFSM6AAAAABD34EUWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZVGMYDINZZGU . You are receiving this because you authored the thread.Message ID: @.***>
I had a similar issue. On another laptop with exactly the same Emacs setup things were working fine, so I figured it must be an issue on the 'python/jupyter' side (well, combined with the emacs-jupyter library of course, because jupyter-notebook itself was working just fine). Anyway, I looked up the jupyter version on my other laptop using jupyter --version
and it returned the following:
IPython : 8.17.2
ipykernel : 6.26.0
ipywidgets : 8.1.1
jupyter_client : 8.6.0
jupyter_core : 5.5.0
jupyter_server : 2.10.1
jupyterlab : 4.0.8
nbclient : 0.10.0
nbconvert : 7.16.3
nbformat : 5.10.4
notebook : 7.0.6
qtconsole : 5.5.1
traitlets : 5.14.2
So after downgrading the python packages to these versions, things have been fixed on my 'new' laptop also.
I'm also getting this :(
I'm also getting this :(
Me too. I did as @dalanicolai mentioned, I have those python libraries exactly as that, and I am getting this when trying to run an org block.
Launching python3 kernel...
Starting python3 kernel process...done
Launching python3 kernel...done
Requesting kernel info...
error in process filter: zmq--subprocess-filter: Error in ZMQ subprocess: error, ("Invalid signature (88020047b89dd2a740c715a128501aa9bcaab4e62ed8205a4611d87b81725c0a) for parts (\"{\\\"msg_id\\\": \\\"cd75312d-cca5d6ce24da80d084b617a6_74620_1\\\", \\\"msg_type\\\": \\\"stream\\\", \\\"username\\\": \\\"rafael\\\", \\\"session\\\": \\\"cd75312d-cca5d6ce24da80d084b617a6\\\", \\\"date\\\": \\\"2024-05-16T22:10:53.449880Z\\\", \\\"version\\\": \\\"5.3\\\"}\" \"{}\" \"{}\" \"{\\\"name\\\": \\\"stderr\\\", \\\"text\\\": \\\"--- Logging error ---\\\\nTraceback (most recent call last):\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelbase.py\\\\\\\", line 376, in dispatch_shell\\\\n msg = self.session.deserialize(msg, content=True, copy=False)\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/jupyter_client/session.py\\\\\\\", line 1074, in deserialize\\\\n raise ValueError(msg)\\\\nValueError: Invalid Signature: b'9c7d3e48c02405a8e688828c7cd4a2aaf879126eb09c30d1797a17726f312f46'\\\\n\\\\nDuring handling of the above exception, another exception occurred:\\\\n\\\\nTraceback (most recent call last):\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/logging/__init__.py\\\\\\\", line 1083, in emit\\\\n self.flush()\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/logging/__init__.py\\\\\\\", line 1063, in flush\\\\n self.stream.flush()\\\\nOSError: [Errno 5] Input/output error\\\\nCall stack:\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/runpy.py\\\\\\\", line 197, in _run_module_as_main\\\\n return _run_code(code, main_globals, None,\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/runpy.py\\\\\\\", line 87, in _run_code\\\\n exec(code, run_globals)\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel_launcher.py\\\\\\\", line 17, in <module>\\\\n app.launch_new_instance()\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/traitlets/config/application.py\\\\\\\", line 1075, in launch_instance\\\\n app.start()\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelapp.py\\\\\\\", line 737, in start\\\\n self.io_loop.start()\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/tornado/platform/asyncio.py\\\\\\\", line 205, in start\\\\n self.asyncio_loop.run_forever()\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/asyncio/base_events.py\\\\\\\", line 596, in run_forever\\\\n self._run_once()\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/asyncio/base_events.py\\\\\\\", line 1890, in _run_once\\\\n handle._run()\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/asyncio/events.py\\\\\\\", line 80, in _run\\\\n self._context.run(self._callback, *self._args)\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelbase.py\\\\\\\", line 524, in dispatch_queue\\\\n await self.process_one()\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelbase.py\\\\\\\", line 513, in process_one\\\\n await dispatch(*args)\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelbase.py\\\\\\\", line 378, in dispatch_shell\\\\n self.log.error(\\\\\\\"Invalid Message\\\\\\\", exc_info=True)\\\\nMessage: 'Invalid Message'\\\\nArguments: ()\\\\n\\\"}\")")
error in process filter: Error in ZMQ subprocess: error, ("Invalid signature (88020047b89dd2a740c715a128501aa9bcaab4e62ed8205a4611d87b81725c0a) for parts (\"{\\\"msg_id\\\": \\\"cd75312d-cca5d6ce24da80d084b617a6_74620_1\\\", \\\"msg_type\\\": \\\"stream\\\", \\\"username\\\": \\\"rafael\\\", \\\"session\\\": \\\"cd75312d-cca5d6ce24da80d084b617a6\\\", \\\"date\\\": \\\"2024-05-16T22:10:53.449880Z\\\", \\\"version\\\": \\\"5.3\\\"}\" \"{}\" \"{}\" \"{\\\"name\\\": \\\"stderr\\\", \\\"text\\\": \\\"--- Logging error ---\\\\nTraceback (most recent call last):\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelbase.py\\\\\\\", line 376, in dispatch_shell\\\\n msg = self.session.deserialize(msg, content=True, copy=False)\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/jupyter_client/session.py\\\\\\\", line 1074, in deserialize\\\\n raise ValueError(msg)\\\\nValueError: Invalid Signature: b'9c7d3e48c02405a8e688828c7cd4a2aaf879126eb09c30d1797a17726f312f46'\\\\n\\\\nDuring handling of the above exception, another exception occurred:\\\\n\\\\nTraceback (most recent call last):\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/logging/__init__.py\\\\\\\", line 1083, in emit\\\\n self.flush()\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/logging/__init__.py\\\\\\\", line 1063, in flush\\\\n self.stream.flush()\\\\nOSError: [Errno 5] Input/output error\\\\nCall stack:\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/runpy.py\\\\\\\", line 197, in _run_module_as_main\\\\n return _run_code(code, main_globals, None,\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/runpy.py\\\\\\\", line 87, in _run_code\\\\n exec(code, run_globals)\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel_launcher.py\\\\\\\", line 17, in <module>\\\\n app.launch_new_instance()\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/traitlets/config/application.py\\\\\\\", line 1075, in launch_instance\\\\n app.start()\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelapp.py\\\\\\\", line 737, in start\\\\n self.io_loop.start()\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/tornado/platform/asyncio.py\\\\\\\", line 205, in start\\\\n self.asyncio_loop.run_forever()\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/asyncio/base_events.py\\\\\\\", line 596, in run_forever\\\\n self._run_once()\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/asyncio/base_events.py\\\\\\\", line 1890, in _run_once\\\\n handle._run()\\\\n File \\\\\\\"/home/rafael/.pyenv/versions/3.9.2/lib/python3.9/asyncio/events.py\\\\\\\", line 80, in _run\\\\n self._context.run(self._callback, *self._args)\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelbase.py\\\\\\\", line 524, in dispatch_queue\\\\n await self.process_one()\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelbase.py\\\\\\\", line 513, in process_one\\\\n await dispatch(*args)\\\\n File \\\\\\\"/home/rafael/Python/pycliques-dev/lib/python3.9/site-packages/ipykernel/kernelbase.py\\\\\\\", line 378, in dispatch_shell\\\\n self.log.error(\\\\\\\"Invalid Message\\\\\\\", exc_info=True)\\\\nMessage: 'Invalid Message'\\\\nArguments: ()\\\\n\\\"}\")")
Hi! when trying to run a jupyter-REPL for the first time, emacs hung for a bit, and then I got the following error. I have no idea how to proceed, and would appreciate any help!