Skip to content

jupyter kernal keeps dying #1892

Closed
Closed
@jslug1000

Description

@jslug1000

Hi,

When opening any jupyter notebook, even one with no code in, I get the 'Dead kernal' message:

The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.

My terminal window shows the following:

[I 07:56:47.888 NotebookApp] [nb_conda_kernels] enabled, 1 kernels found
[I 07:56:48.230 NotebookApp] The port 8888 is already in use, trying another port.
[I 07:56:48.438 NotebookApp] [nb_anacondacloud] enabled
[I 07:56:48.456 NotebookApp] [nb_conda] enabled
[I 07:56:48.874 NotebookApp] ✓ nbpresent HTML export ENABLED
[W 07:56:48.874 NotebookApp] ✗ nbpresent PDF export DISABLED: No module named 'nbbrowserpdf'
[I 07:56:48.886 NotebookApp] Serving notebooks from local directory: /Users/jedgecombe
[I 07:56:48.886 NotebookApp] 0 active kernels
[I 07:56:48.886 NotebookApp] The Jupyter Notebook is running at: http://localhost:8889/
[I 07:56:48.887 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 07:57:08.143 NotebookApp] Notebook Dropbox/Python/AB_testing/template/ab_test_template.ipynb is not trusted
[I 07:57:08.694 NotebookApp] Kernel started: 8743e528-acb5-488f-8e46-456675500373
[W 07:57:08.723 NotebookApp] 404 GET /kernelspecs/Python%20[Root]/logo-64x64.png (::1) 25.64ms referer=http://localhost:8889/notebooks/Dropbox/Python/AB_testing/template/ab_test_template.ipynb
Traceback (most recent call last):
File "/Users/jedgecombe/anaconda3/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/Users/jedgecombe/anaconda3/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/jedgecombe/anaconda3/lib/python3.5/site-packages/ipykernel/main.py", line 2, in
from ipykernel import kernelapp as app
File "/Users/jedgecombe/anaconda3/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 98, in
ConnectionFileMixin):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
[I 07:57:11.695 NotebookApp] KernelRestarter: restarting kernel (1/5)
Traceback (most recent call last):
File "/Users/jedgecombe/anaconda3/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/Users/jedgecombe/anaconda3/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/jedgecombe/anaconda3/lib/python3.5/site-packages/ipykernel/main.py", line 2, in
from ipykernel import kernelapp as app
File "/Users/jedgecombe/anaconda3/lib/python3.5/site-packages/ipykernel/kernelapp.py", line 98, in
ConnectionFileMixin):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

It tries to restart 5 times (so some repeated code from above) then shows the following:

[W 07:57:23.735 NotebookApp] KernelRestarter: restart failed
[W 07:57:23.735 NotebookApp] Kernel 8743e528-acb5-488f-8e46-456675500373 died, removing from map.
ERROR:root:kernel 8743e528-acb5-488f-8e46-456675500373 restarted failed!
[W 07:57:23.757 NotebookApp] Kernel deleted before session
[W 07:57:23.757 NotebookApp] 410 DELETE /api/sessions/d129aa7e-fc50-4cfd-9e5d-aab57ff7b49e (::1) 1.74ms referer=http://localhost:8889/notebooks/Dropbox/Python/AB_testing/template/ab_test_template.ipynb

I've tried pip uninstalling and re-installing, also tried this with conda but no luck and can't see similar problems online. Would be extremely grateful for any help!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions