Skip to content
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

Connection failed when opening downloaded code #4775

Closed
RichardoTiono opened this issue Jul 20, 2019 · 2 comments
Closed

Connection failed when opening downloaded code #4775

RichardoTiono opened this issue Jul 20, 2019 · 2 comments

Comments

@RichardoTiono
Copy link

Hello,
I have encountered error of opening a downloaded code Interactive deep colorization for deep learning program on Jupyter. It always stuck on 'starting kernel please wait' then after waiting I got 'connection failed' error then the notebook closed. I have already tried different downloadable code but the problem persist. But it never happen if I just create a new ipnyb by myself, I even able to run simple code on it. I am using ubuntu 18.04 and opening jupyter on firefox . These are the error that I got

[E 12:18:15.154 NotebookApp] Could not open static file ''
[W 12:18:15.258 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 50.27ms referer=http://localhost:8888/tree?token=892b25f22d08fdd71b7355d2ed6aef077213b2ab8f48ca0a
[W 12:18:15.279 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 1.62ms referer=http://localhost:8888/tree?token=892b25f22d08fdd71b7355d2ed6aef077213b2ab8f48ca0a
[I 12:18:27.793 NotebookApp] Creating new notebook in
[W 12:18:28.842 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 1.73ms referer=http://localhost:8888/notebooks/Untitled.ipynb?kernel_name=python3
[W 12:18:28.910 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 1.98ms referer=http://localhost:8888/notebooks/Untitled.ipynb?kernel_name=python3
[I 12:18:29.529 NotebookApp] Kernel started: 3c613b86-2bef-435d-981e-e17412d72b8e
[I 12:18:30.040 NotebookApp] Adapting from protocol version 5.1 (kernel 3c613b86-2bef-435d-981e-e17412d72b8e) to 5.3 (client).
[I 12:19:20.863 NotebookApp] Saving file at /Untitled.ipynb
[I 12:19:21.034 NotebookApp] Starting buffering for 3c613b86-2bef-435d-981e-e17412d72b8e:01f087a5249a4799a90a40e022248e80
[I 12:19:26.445 NotebookApp] Kernel shutdown: 3c613b86-2bef-435d-981e-e17412d72b8e
[W 12:19:26.448 NotebookApp] delete /Untitled.ipynb
[W 12:19:27.679 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 1.29ms referer=http://localhost:8888/notebooks/DemoInteractiveColorization.ipynb
[W 12:19:27.717 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 1.14ms referer=http://localhost:8888/notebooks/DemoInteractiveColorization.ipynb
[W 12:19:27.954 NotebookApp] Notebook DemoInteractiveColorization.ipynb is not trusted
[I 12:19:28.381 NotebookApp] Kernel started: 8b51e039-5b10-4687-8afb-2968e2aeb061
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/usr/local/lib/python3.7/dist-packages/ipykernel/init.py", line 2, in
from .connect import *
File "/usr/local/lib/python3.7/dist-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/usr/lib/python3/dist-packages/IPython/init.py", line 48, in
from .core.application import Application
File "/usr/lib/python3/dist-packages/IPython/core/application.py", line 25, in
from IPython.core import release, crashhandler
File "/usr/lib/python3/dist-packages/IPython/core/crashhandler.py", line 28, in
from IPython.core import ultratb
File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 124, in
from IPython.utils import path as util_path
File "/usr/lib/python3/dist-packages/IPython/utils/path.py", line 18, in
from IPython.utils.process import system
File "/usr/lib/python3/dist-packages/IPython/utils/process.py", line 19, in
from ._process_posix import system, getoutput, arg_split, check_pid
File "/usr/lib/python3/dist-packages/IPython/utils/_process_posix.py", line 24, in
import pexpect
File "/usr/lib/python3/dist-packages/pexpect/init.py", line 75, in
from .pty_spawn import spawn, spawnu
File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 14, in
from .spawnbase import SpawnBase
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 224
def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
^
SyntaxError: invalid syntax
[I 12:19:31.381 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/usr/local/lib/python3.7/dist-packages/ipykernel/init.py", line 2, in
from .connect import *
File "/usr/local/lib/python3.7/dist-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/usr/lib/python3/dist-packages/IPython/init.py", line 48, in
from .core.application import Application
File "/usr/lib/python3/dist-packages/IPython/core/application.py", line 25, in
from IPython.core import release, crashhandler
File "/usr/lib/python3/dist-packages/IPython/core/crashhandler.py", line 28, in
from IPython.core import ultratb
File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 124, in
from IPython.utils import path as util_path
File "/usr/lib/python3/dist-packages/IPython/utils/path.py", line 18, in
from IPython.utils.process import system
File "/usr/lib/python3/dist-packages/IPython/utils/process.py", line 19, in
from ._process_posix import system, getoutput, arg_split, check_pid
File "/usr/lib/python3/dist-packages/IPython/utils/_process_posix.py", line 24, in
import pexpect
File "/usr/lib/python3/dist-packages/pexpect/init.py", line 75, in
from .pty_spawn import spawn, spawnu
File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 14, in
from .spawnbase import SpawnBase
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 224
def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
^
SyntaxError: invalid syntax
[I 12:19:34.392 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/usr/local/lib/python3.7/dist-packages/ipykernel/init.py", line 2, in
from .connect import *
File "/usr/local/lib/python3.7/dist-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/usr/lib/python3/dist-packages/IPython/init.py", line 48, in
from .core.application import Application
File "/usr/lib/python3/dist-packages/IPython/core/application.py", line 25, in
from IPython.core import release, crashhandler
File "/usr/lib/python3/dist-packages/IPython/core/crashhandler.py", line 28, in
from IPython.core import ultratb
File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 124, in
from IPython.utils import path as util_path
File "/usr/lib/python3/dist-packages/IPython/utils/path.py", line 18, in
from IPython.utils.process import system
File "/usr/lib/python3/dist-packages/IPython/utils/process.py", line 19, in
from ._process_posix import system, getoutput, arg_split, check_pid
File "/usr/lib/python3/dist-packages/IPython/utils/_process_posix.py", line 24, in
import pexpect
File "/usr/lib/python3/dist-packages/pexpect/init.py", line 75, in
from .pty_spawn import spawn, spawnu
File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 14, in
from .spawnbase import SpawnBase
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 224
def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
^
SyntaxError: invalid syntax
[I 12:19:37.403 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/usr/local/lib/python3.7/dist-packages/ipykernel/init.py", line 2, in
from .connect import *
File "/usr/local/lib/python3.7/dist-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/usr/lib/python3/dist-packages/IPython/init.py", line 48, in
from .core.application import Application
File "/usr/lib/python3/dist-packages/IPython/core/application.py", line 25, in
from IPython.core import release, crashhandler
File "/usr/lib/python3/dist-packages/IPython/core/crashhandler.py", line 28, in
from IPython.core import ultratb
File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 124, in
from IPython.utils import path as util_path
File "/usr/lib/python3/dist-packages/IPython/utils/path.py", line 18, in
from IPython.utils.process import system
File "/usr/lib/python3/dist-packages/IPython/utils/process.py", line 19, in
from ._process_posix import system, getoutput, arg_split, check_pid
File "/usr/lib/python3/dist-packages/IPython/utils/_process_posix.py", line 24, in
import pexpect
File "/usr/lib/python3/dist-packages/pexpect/init.py", line 75, in
from .pty_spawn import spawn, spawnu
File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 14, in
from .spawnbase import SpawnBase
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 224
def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
^
SyntaxError: invalid syntax
[I 12:19:40.414 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "/usr/local/lib/python3.7/dist-packages/ipykernel/init.py", line 2, in
from .connect import *
File "/usr/local/lib/python3.7/dist-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/usr/lib/python3/dist-packages/IPython/init.py", line 48, in
from .core.application import Application
File "/usr/lib/python3/dist-packages/IPython/core/application.py", line 25, in
from IPython.core import release, crashhandler
File "/usr/lib/python3/dist-packages/IPython/core/crashhandler.py", line 28, in
from IPython.core import ultratb
File "/usr/lib/python3/dist-packages/IPython/core/ultratb.py", line 124, in
from IPython.utils import path as util_path
File "/usr/lib/python3/dist-packages/IPython/utils/path.py", line 18, in
from IPython.utils.process import system
File "/usr/lib/python3/dist-packages/IPython/utils/process.py", line 19, in
from ._process_posix import system, getoutput, arg_split, check_pid
File "/usr/lib/python3/dist-packages/IPython/utils/_process_posix.py", line 24, in
import pexpect
File "/usr/lib/python3/dist-packages/pexpect/init.py", line 75, in
from .pty_spawn import spawn, spawnu
File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 14, in
from .spawnbase import SpawnBase
File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 224
def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
^
SyntaxError: invalid syntax
[W 12:19:43.423 NotebookApp] KernelRestarter: restart failed
[W 12:19:43.424 NotebookApp] Kernel 8b51e039-5b10-4687-8afb-2968e2aeb061 died, removing from map.
[W 12:19:49.427 NotebookApp] Replacing stale connection: 8b51e039-5b10-4687-8afb-2968e2aeb061:d13818a2c1bd44578d52b344ffc86fa1
[W 12:20:11.459 NotebookApp] Replacing stale connection: 8b51e039-5b10-4687-8afb-2968e2aeb061:d13818a2c1bd44578d52b344ffc86fa1
[W 12:20:28.520 NotebookApp] Timeout waiting for kernel_info reply from 8b51e039-5b10-4687-8afb-2968e2aeb061
[E 12:20:28.522 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 8b51e039-5b10-4687-8afb-2968e2aeb061)
[W 12:20:28.524 NotebookApp] 404 GET /api/kernels/8b51e039-5b10-4687-8afb-2968e2aeb061/channels?session_id=d13818a2c1bd44578d52b344ffc86fa1 (127.0.0.1): Kernel does not exist: 8b51e039-5b10-4687-8afb-2968e2aeb061
[W 12:20:28.526 NotebookApp] 404 GET /api/kernels/8b51e039-5b10-4687-8afb-2968e2aeb061/channels?session_id=d13818a2c1bd44578d52b344ffc86fa1 (127.0.0.1) 39102.96ms referer=None
[W 12:20:28.526 NotebookApp] 404 GET /api/kernels/8b51e039-5b10-4687-8afb-2968e2aeb061/channels?session_id=d13818a2c1bd44578d52b344ffc86fa1 (127.0.0.1): Kernel does not exist: 8b51e039-5b10-4687-8afb-2968e2aeb061
[W 12:20:28.528 NotebookApp] 404 GET /api/kernels/8b51e039-5b10-4687-8afb-2968e2aeb061/channels?session_id=d13818a2c1bd44578d52b344ffc86fa1 (127.0.0.1) 17071.98ms referer=None

Please help me

@uililo
Copy link

uililo commented Jul 28, 2019

Experiencing the same issue here

@Benfeitas
Copy link

This may solve your problem: #4772 (comment)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants