Jupyter showing kernel error...
See original GitHub issueI use the jupyter that comes with anaconda distribution. My python version is 3.5.2 and my conda version is 4.5
This problem occurred when I interrupted my program when it was in middle of running.
This problem occurred once more earlier when I interrupted my program when it was running though the traceback was not same. I was able to solve it by myself by updating the pyzmq to latest version.
Here is my traceback
Traceback (most recent call last):
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 526, in get
value = obj._trait_values[self.name]
KeyError: 'loop'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\notebook\base\handlers.py", line 457, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\tornado\gen.py", line 1099, in run
value = future.result()
File "C:\Users\ROCKSTAR\Anaconda3\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\tornado\gen.py", line 1107, in run
yielded = self.gen.throw(*exc_info)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\notebook\services\sessions\handlers.py", line 62, in post
kernel_id=kernel_id))
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\tornado\gen.py", line 1099, in run
value = future.result()
File "C:\Users\ROCKSTAR\Anaconda3\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\tornado\gen.py", line 1107, in run
yielded = self.gen.throw(*exc_info)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 79, in create_session
kernel_name)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\tornado\gen.py", line 1099, in run
value = future.result()
File "C:\Users\ROCKSTAR\Anaconda3\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\tornado\gen.py", line 1107, in run
yielded = self.gen.throw(*exc_info)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 92, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\tornado\gen.py", line 1099, in run
value = future.result()
File "C:\Users\ROCKSTAR\Anaconda3\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\tornado\gen.py", line 315, in wrapper
yielded = next(result)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 87, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 244, in start_kernel
self.start_restarter()
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\jupyter_client\ioloop\manager.py", line 49, in start_restarter
kernel_manager=self, loop=self.loop,
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 554, in __get__
return self.get(obj, cls)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 533, in get
value = self._validate(obj, dynamic_default())
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 589, in _validate
value = self.validate(obj, value)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 1681, in validate
self.error(obj, value)
File "C:\Users\ROCKSTAR\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 1528, in error
raise TraitError(e)
traitlets.traitlets.TraitError: The 'loop' trait of an IOLoopKernelManager instance must be a ZMQIOLoop, but a value of class 'tornado.platform.asyncio.AsyncIOMainLoop' (i.e. <tornado.platform.asyncio.AsyncIOMainLoop object at 0x000001B37F8A7908>) was specified.
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
How to Fix Kernel Error in Jupyter Notebook
1. Access the back-end of the tool. · 2. Open Base Environment and select your directory. · 3. Create another environment for your...
Read more >Kernel Error – Jupyter Notebook - Tech……Answers
I recently started using it again and after installing it when I opened a Python 3 file, I saw a red box with...
Read more >Why do I have a Kernel Error in Jupyter Notebook?
I am a newbie to python. I am getting the below error in Kernel while opening jupyter notebook. Any ideas how I can...
Read more >What to do when things go wrong - The Jupyter Notebook
As a result, when encountering kernel startup issues, again, check the argv stanza and verify it's pointing to a valid file. You may...
Read more >launching jupyter i get kernel error · Issue #2301 - GitHub
Try deleting that kernelspec path (the python3 one, assuming that's what is failing to launch). It should fall back on running the kernel...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems that upgrading
ipykernel
to >=4.8.2 and downgrading tornado to 4.5.3 can fix this issue. I first ranconda update --all
and thenconda install tornado=4.5.3
and finallyconda install ipykernel
OK, I hope reinstalling Anaconda has fixed it. If you run into it again, check if the error message changes (especially the bit at the end, which is the real error). I don’t think it should be possible to get that message with an up-to-date jupyter_client.