-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR:tornado.general:Uncaught exception in ZMQStream callback #6783
Comments
I think I resolved the issue by downgrading the tornado version. |
For the record, |
This seems to be a root cause for https://issues.apache.org/jira/browse/ZEPPELIN-3505 |
downgrading tornado to 4.5.3 does not solve the problem, upgrading ipykernel from 4.6.1 to 4.8.2 solve the problem for me. |
Like @xiaokunx, downgrading tornado to 4.5.3 did not resolve the issue for me, while upgrading ipykernel solved the problem. |
|
Upgrading ipykernel worked for me |
1 similar comment
Upgrading ipykernel worked for me |
Upgrading ipykernel worked for me, too.
|
If you're using Anaconda, this needs to be
|
These were my versions, when I encountered the error:
What worked for me are to update ipykernel and then install tornado 4.5.3:
ipykernel is now 5.1.0 and tornado is 4.5.3, and my jupyter notebook works alright. |
THANKS |
@mullachv Thank you for the detailed explanation, your code worked for me. I checked my versions first before upgrading both ipykernel and tornado. |
Upgrading ipykernel in Anaconda worked for me, too:
But the Spyder stopped worked ...
So I needed to upgrade IPython:
|
|
@jpthirumalai If that worked, then your Spyder installation was likely contaminated with Furthermore, if others try the same, they are likely to break their installs as well. Ergo, @ccordoba12 will likely want to hide the above comment, and you might want to make a final comment authoritatively stating the correct solution and then lock the thread, since the problem is resolved. |
brilliant! bro |
Description
What steps will reproduce the problem?
What is the expected output? What do you see instead?
An error ocurred while starting the kernel
ERROR:tornado.general:Uncaught exception in ZMQStream callback
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist‑packages/zmq/eventloop/zmqstream.py", line 432, in _run_callback
callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist‑packages/tornado/stack_context.py", line 276, in null_wrapper
return fn(*args, **kwargs)
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelbase.py", line 233, in dispatch_shell
self.pre_handler_hook()
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelbase.py", line 248, in pre_handler_hook
self.saved_sigint_handler = signal(SIGINT, default_int_handler)
File "/usr/lib/python3.5/signal.py", line 47, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread
ERROR:tornado.general:Uncaught exception in zmqstream callback
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist‑packages/zmq/eventloop/zmqstream.py", line 450, in _handle_events
self._handle_recv()
File "/usr/local/lib/python3.5/dist‑packages/zmq/eventloop/zmqstream.py", line 480, in _handle_recv
self._run_callback(callback, msg)
File "/usr/local/lib/python3.5/dist‑packages/zmq/eventloop/zmqstream.py", line 432, in _run_callback
callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist‑packages/tornado/stack_context.py", line 276, in null_wrapper
return fn(*args, **kwargs)
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelbase.py", line 233, in dispatch_shell
self.pre_handler_hook()
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelbase.py", line 248, in pre_handler_hook
self.saved_sigint_handler = signal(SIGINT, default_int_handler)
File "/usr/lib/python3.5/signal.py", line 47, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread
ERROR:tornado.application:Exception in callback functools.partial(.null_wrapper at 0x7f95db138f28>)
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist‑packages/tornado/ioloop.py", line 760, in _run_callback
ret = callback()
File "/usr/local/lib/python3.5/dist‑packages/tornado/stack_context.py", line 276, in null_wrapper
return fn(*args, **kwargs)
File "/usr/local/lib/python3.5/dist‑packages/zmq/eventloop/zmqstream.py", line 536, in
self.io_loop.add_callback(lambda : self._handle_events(self.socket, 0))
File "/usr/local/lib/python3.5/dist‑packages/zmq/eventloop/zmqstream.py", line 450, in _handle_events
self._handle_recv()
File "/usr/local/lib/python3.5/dist‑packages/zmq/eventloop/zmqstream.py", line 480, in _handle_recv
self._run_callback(callback, msg)
File "/usr/local/lib/python3.5/dist‑packages/zmq/eventloop/zmqstream.py", line 432, in _run_callback
callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist‑packages/tornado/stack_context.py", line 276, in null_wrapper
return fn(*args, **kwargs)
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelbase.py", line 233, in dispatch_shell
self.pre_handler_hook()
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelbase.py", line 248, in pre_handler_hook
self.saved_sigint_handler = signal(SIGINT, default_int_handler)
File "/usr/lib/python3.5/signal.py", line 47, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
ValueError: signal only works in main thread
Traceback (most recent call last):
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/spyder/utils/ipython/start_kernel.py", line 241, in
main()
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/spyder/utils/ipython/start_kernel.py", line 237, in main
kernel.start()
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "/usr/local/lib/python3.5/dist‑packages/tornado/platform/asyncio.py", line 112, in start
self.asyncio_loop.run_forever()
File "/usr/lib/python3.5/asyncio/base_events.py", line 340, in run_forever
raise RuntimeError('Event loop is running.')
RuntimeError: Event loop is running.
Traceback (most recent call last):
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/spyder/utils/ipython/start_kernel.py", line 241, in
main()
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/spyder/utils/ipython/start_kernel.py", line 237, in main
kernel.start()
File "/home/adityamagarde/.local/lib/python3.5/site‑packages/ipykernel/kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "/usr/local/lib/python3.5/dist‑packages/tornado/platform/asyncio.py", line 112, in start
self.asyncio_loop.run_forever()
File "/usr/lib/python3.5/asyncio/base_events.py", line 340, in run_forever
raise RuntimeError('Event loop is running.')
RuntimeError: Event loop is running.
Please provide any additional information below
I recently installed jupyter. Even that isn't working I guess.
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: