jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

Hi all, I hope someone can help me with this: Kernel died and tries to restart but doesn't #439

Closed jcwalmsley closed 5 years ago

jcwalmsley commented 5 years ago

Last login: Sat Oct 6 20:06:10 on ttys000 Jcw-MacBook-Pro:~ jamescwalmsley$ jupyter notebook [I 20:08:18.247 NotebookApp] Serving notebooks from local directory: /Users/jamescwalmsley [I 20:08:18.247 NotebookApp] 0 active kernels [I 20:08:18.247 NotebookApp] The Jupyter Notebook is running at: [I 20:08:18.247 NotebookApp] http://localhost:8888/?token=03bab7a9d2bae779fb8f314728f8a86f1cd3f99931bdcc67 [I 20:08:18.247 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 20:08:18.248 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time, to login with a token: http://localhost:8888/?token=03bab7a9d2bae779fb8f314728f8a86f1cd3f99931bdcc67 [I 20:08:18.372 NotebookApp] Accepting one-time-token-authenticated connection from ::1 [I 20:08:39.055 NotebookApp] 302 GET /?token=03bab7a9d2bae779fb8f314728f8a86f1cd3f99931bdcc67 (::1) 0.53ms [I 20:08:57.028 NotebookApp] Kernel started: ceae6f02-1bba-4d0d-9e81-06fd6f21124e Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/init.py", line 2, in from .connect import File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/connect.py", line 13, in from IPython.core.profiledir import ProfileDir File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/init.py", line 55, in from .terminal.embed import embed File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/embed.py", line 16, in from IPython.terminal.interactiveshell import TerminalInteractiveShell File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py", line 20, in from prompt_toolkit.formatted_text import PygmentsTokens ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text' [I 20:09:00.027 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/init.py", line 2, in from .connect import File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/connect.py", line 13, in from IPython.core.profiledir import ProfileDir File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/init.py", line 55, in from .terminal.embed import embed File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/embed.py", line 16, in from IPython.terminal.interactiveshell import TerminalInteractiveShell File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py", line 20, in from prompt_toolkit.formatted_text import PygmentsTokens ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text' [I 20:09:03.040 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/init.py", line 2, in from .connect import File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/connect.py", line 13, in from IPython.core.profiledir import ProfileDir File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/init.py", line 55, in from .terminal.embed import embed File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/embed.py", line 16, in from IPython.terminal.interactiveshell import TerminalInteractiveShell File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py", line 20, in from prompt_toolkit.formatted_text import PygmentsTokens ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text' [I 20:09:06.053 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/init.py", line 2, in from .connect import File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/connect.py", line 13, in from IPython.core.profiledir import ProfileDir File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/init.py", line 55, in from .terminal.embed import embed File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/embed.py", line 16, in from IPython.terminal.interactiveshell import TerminalInteractiveShell File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py", line 20, in from prompt_toolkit.formatted_text import PygmentsTokens ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text' [W 20:09:07.271 NotebookApp] Timeout waiting for kernel_info reply from ceae6f02-1bba-4d0d-9e81-06fd6f21124e [I 20:09:09.063 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports WARNING:root:kernel ceae6f02-1bba-4d0d-9e81-06fd6f21124e restarted Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel_launcher.py", line 15, in from ipykernel import kernelapp as app File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/init.py", line 2, in from .connect import * File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipykernel/connect.py", line 13, in from IPython.core.profiledir import ProfileDir File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/init.py", line 55, in from .terminal.embed import embed File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/embed.py", line 16, in from IPython.terminal.interactiveshell import TerminalInteractiveShell File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/IPython/terminal/interactiveshell.py", line 20, in from prompt_toolkit.formatted_text import PygmentsTokens ModuleNotFoundError: No module named 'prompt_toolkit.formatted_text' [W 20:09:12.073 NotebookApp] KernelRestarter: restart failed [W 20:09:12.074 NotebookApp] Kernel ceae6f02-1bba-4d0d-9e81-06fd6f21124e died, removing from map. ERROR:root:kernel ceae6f02-1bba-4d0d-9e81-06fd6f21124e restarted failed! [W 20:09:12.091 NotebookApp] 410 DELETE /api/sessions/d6768a73-5f0b-4717-8aae-95d9773ebd5c (::1): Kernel deleted before session [W 20:09:12.091 NotebookApp] Kernel deleted before session [W 20:09:12.092 NotebookApp] 410 DELETE /api/sessions/d6768a73-5f0b-4717-8aae-95d9773ebd5c (::1) 2.22ms referer=http://localhost:8888/notebooks/Desktop/Udacity/Nanodegrees/Data_Analyst/Projects/Investigate_a_Data_Set/investigate-a-dataset-template.ipynb