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
Closed
UNS-AI opened this issue
Feb 19, 2021
· 5 comments
Comments
Description
Reproduce
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error ‘…’
Expected behavior
Context
- Operating System and version:
- Browser and version:
- JupyterLab version:
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here. You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here.
UNS-AI
changed the title
Server Connection error
Server Connection error-A connection to the Jupyter server could not be established. Jupyterlab will continue trying to connect. Check your network connection or Jupyter server configuration.
Feb 19, 2021
Hi,
Thank you jasongrout. I am new in Jupyterlab. I encountered this problem when I tried to rename the title of Jupyter notebook, run the cells etc- within any new environments created by me. But works fine within base(root) environment. On checking it is found that the tornado 6.0.4 is in base(root) environment where as tornado 6.1 is in any new environment I create.
Using cmd.exe (with- pip install —upgrade tornado==6.0.4) I have succeeded in changing the version of tornado to 6.0.4- from within a new environment in Anaconda navigator. I confirmed the change to version 6.0.4 by checking the folder — F:/anacond/envs/newenv/lib/site-packages/tornado-6.0.4. But on searching, using search box under environments tab of Navigator, tornado 6.1 shows as before. Also the problem remains same as it was before when running cells, renaming notebook title etc. I repeated the process by creating new environments. Reinstalled Anaconda as a whole. But issue remains as it is.
I tried to proceed with base(root) environment. But it has another issue. It lacks Keras. I tried to import Keras to it and ended up with a long list of errors-conflicts of packages.
OS: Windows 7 ultimate-64 bit
Browser: Firefox 85.0.2
Jupyterlab: 2.2.6
Thank you
AI_screenshots.docx
I tested with classic Jupyter Notebook (by accessing from help menu of Jupyter lab). The problem repeats. Please see the screen shots uploaded along with last comment. 1st, 2nd & 4th screen shots -same in Jupyter lab & classic Jupyter Notebook with a new environment created by me. 3rd one is in Jupyter lab with base(root) environment due to the absence of Keras.
Some body please help.
Problem solved. I changed my computer. Now working fine. It might be an OS related issue. Previous computer has OS windows 7 ultimate & new one has OS windows 8.
Jasongrouts guidance also helped. Thank you
Thanks for following up, and I’m glad it’s working now!
github-actions
bot
locked as resolved and limited conversation to collaborators
Aug 26, 2021
2 participants
Содержание
- File Save Error and Server Connection Error (NetworkError) occurring on save #4532
- Comments
- Connection failed A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration. #6261
- Comments
- A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration. #5577
- Comments
File Save Error and Server Connection Error (NetworkError) occurring on save #4532
Upon saving notebooks, I have been occasionally receiving three errors in succession upon attempting to save my notebooks:
- File Save Error for filename.ipynb: NetworkError when attempting to fetch resource.
- Server Connection Error: NetworkError when attempting to fetch resource.
- File Save Error for filename.ipynb: NetworkError when attempting to fetch resource.
Below is a screenshot of the JS console in Firefox:
And in Chrome:
I haven’t been able to consistently reproduce these errors.
Interestingly, I get a 403 when attempting to stop my user’s server. I’m not sure if this is related to the main issue — it may just be due to the server host’s config.
I’ve also had the issue occur only on one device, when using one network in particular. Notably, I have been using a VPN on this network, but on other networks and other devices I have not encountered the issue while using the same VPN.
@ellisonbg suggested that it may be due to the browser extensions I have installed (uBlock Origin and various other privacy-related extensions), but I don’t think they are the source of the problem as the issue doesn’t consistently occur and doesn’t occur on other machines using the same browser extensions.
Another thought is that these errors are related to network issues. However, I am able to still interact with notebooks in other ways (edit and run cells, view outputs, restart kernels, etc.) per usual after the errors occur. (I can view output from running cells, but cannot save this output.)
I am currently at a loss for why these errors are occurring. Any help is much appreciated!
The text was updated successfully, but these errors were encountered:
Источник
Connection failed A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration. #6261
[I 08:18:54.461 NotebookApp] The port 8888 is already in use, trying another port.
[W 08:18:54.548 NotebookApp] Error loading server extension jupyterlab
Traceback (most recent call last):
File «C:UsersAYOOLAanaconda3libsite-packagesjupyter_serverprometheusmetrics.py», line 12, in
from notebook.prometheus.metrics import HTTP_REQUEST_DURATION_SECONDS, TERMINAL_CURRENTLY_RUNNING_TOTAL, KERNEL_CURRENTLY_RUNNING_TOTAL
ModuleNotFoundError: No module named ‘notebook.prometheus’
[I 08:18:55.084 NotebookApp] Serving notebooks from local directory: C:UsersAYOOLA
[I 08:18:55.084 NotebookApp] The Jupyter Notebook is running at:
[I 08:18:55.085 NotebookApp] http://localhost:8889/?token=23edeb43832f8c4f496974d14f56a20d73a6d39c62eaff45
[I 08:18:55.088 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 08:18:55.169 NotebookApp]
[I 08:18:55.504 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 08:19:01.289 NotebookApp] Creating new notebook in
[I 08:19:07.508 NotebookApp] Kernel s
tarted: 6d7706bb-9c3a-45bb-83fa-818a37558650
C:UsersAYOOLAAppDataRoamingPythonPython39site-packagesnotebookbasezmqhandlers.py:284: RuntimeWarning: coroutine ‘WebSocketHandler.get’ was never awaited
super(AuthenticatedZMQStreamHandler, self).get(*args, **kwargs)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
[W 08:19:19.392 NotebookApp] Replacing stale connection: 6d7706bb-9c3a-45bb-83fa-818a37558650:055aec577cea45ff8010a498ac720c18
The text was updated successfully, but these errors were encountered:
You’re running an older (pre 6.0?) version of notebook as is evident by the missing version information in this log statement:
which would explain why the websocket handler was never awaited. It’s also curious to me the mixture of Lab/JupyterServer/Notebook in the logs as well since Lab should be using Jupyter Server completely. As such, I would suggest also updating jupyterlab and jupyter_server versions as well.
Thank you @kevin-bates
I have updated jupyterlab and server, but the error still comes up.
Источник
A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration. #5577
When I start jupyter notebook I always get this error. Tried uninstalling and installing anaconda twice to resolve it but of no use.
Jupyter notebook version: 6.0.3
Python version: 3.7.6
The text was updated successfully, but these errors were encountered:
Please provide the contents of the console in which you launched your notebook server. It will have details that may shed more light into the issue’s cause.
I am using anaconda prompt to run jupyter notebook, this is what its showing.
It looks like you truncated the primary portion of the traceback (its end). Please (PLEASE) do not use screenshots to provide this information, but instead, ‘select’/’copy’ then ‘paste’. This allows others to «grab» specific text — which better facilitates the ability to troubleshoot.
Since the information is incomplete I can only surmise. This «smells» like an import conflict with local files/directories in your notebook-dir, but, again, don’t really have enough information to go here. If you have python files that might resemble package names found in import statements, I would suggest perhaps renaming those. One such example might be an application.py file — since that’s the last import statement I see.
(base) C:UsersAcer>jupyter notebook
[I 21:57:22.191 NotebookApp] JupyterLab extension loaded from C:UsersAceranaconda3libsite-packagesjupyterlab
[I 21:57:22.192 NotebookApp] JupyterLab application directory is C:UsersAceranaconda3sharejupyterlab
[I 21:57:22.210 NotebookApp] Serving notebooks from local directory: C:UsersAcer
[I 21:57:22.210 NotebookApp] The Jupyter Notebook is running at:
[I 21:57:22.210 NotebookApp] http://localhost:8888/?token=894e685b59803fc745e0f52258ede5989e106345e07c9fca
[I 21:57:22.210 NotebookApp] or http://127.0.0.1:8888/?token=894e685b59803fc745e0f52258ede5989e106345e07c9fca
[I 21:57:22.210 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 21:57:22.255 NotebookApp]
[I 21:57:30.507 NotebookApp] Kernel started: 9f1fca9d-ad2e-4231-88c9-422194adf48c
Traceback (most recent call last):
File «C:UsersAceranaconda3librunpy.py», line 193, in run_module_as_main
«main«, mod_spec)
File «C:UsersAceranaconda3librunpy.py», line 85, in run_code
exec(code, run_globals)
File «C:UsersAceranaconda3libsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UsersAceranaconda3libsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UsersAceranaconda3libsite-packagesipykernelconnect.py», line 13, in
from IPython.core.profiledir import ProfileDir
File «C:UsersAceranaconda3libsite-packagesIPython_init.py», line 55, in
from .core.application import Application
File «C:UsersAceranaconda3libsite-packagesIPythoncoreapplication.py», line 23, in
from traitlets.config.application import Application, catch_config_error
File «C:UsersAceranaconda3libsite-packagestraitletsconfig_init_.py», line 6, in
from .application import *
File «C:UsersAceranaconda3libsite-packagestraitletsconfigapplication.py», line 19, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File «C:UsersAceranaconda3libsite-packagestraitletsconfigconfigurable.py», line 12, in
from .loader import Config, LazyConfigValue, is_section_key
File «C:UsersAceranaconda3libsite-packagestraitletsconfigloader.py», line 16, in
from ipython_genutils.path import filefind
File «C:UsersAceranaconda3libsite-packagesipython_genutilspath.py», line 13, in
import random
File «C:UsersAcerDesktopNotebooksrandom.py», line 4, in
rand_set = random.sample(english_words_lower_set, 12)
AttributeError: module ‘random’ has no attribute ‘sample’
[I 21:57:33.484 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File «C:UsersAceranaconda3librunpy.py», line 193, in run_module_as_main
«main«, mod_spec)
File «C:UsersAceranaconda3librunpy.py», line 85, in run_code
exec(code, run_globals)
File «C:UsersAceranaconda3libsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UsersAceranaconda3libsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UsersAceranaconda3libsite-packagesipykernelconnect.py», line 13, in
from IPython.core.profiledir import ProfileDir
File «C:UsersAceranaconda3libsite-packagesIPython_init.py», line 55, in
from .core.application import Application
File «C:UsersAceranaconda3libsite-packagesIPythoncoreapplication.py», line 23, in
from traitlets.config.application import Application, catch_config_error
File «C:UsersAceranaconda3libsite-packagestraitletsconfig_init.py», line 6, in
from .application import *
File «C:UsersAceranaconda3libsite-packagestraitletsconfigapplication.py», line 19, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File «C:UsersAceranaconda3libsite-packagestraitletsconfigconfigurable.py», line 12, in
from .loader import Config, LazyConfigValue, is_section_key
File «C:UsersAceranaconda3libsite-packagestraitletsconfigloader.py», line 16, in
from ipython_genutils.path import filefind
File «C:UsersAceranaconda3libsite-packagesipython_genutilspath.py», line 13, in
import random
File «C:UsersAcerDesktopNotebooksrandom.py», line 4, in
rand_set = random.sample(english_words_lower_set, 12)
AttributeError: module ‘random’ has no attribute ‘sample’
[I 21:57:36.495 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
Traceback (most recent call last):
File «C:UsersAceranaconda3librunpy.py», line 193, in run_module_as_main
«main«, mod_spec)
File «C:UsersAceranaconda3librunpy.py», line 85, in run_code
exec(code, run_globals)
File «C:UsersAceranaconda3libsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UsersAceranaconda3libsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UsersAceranaconda3libsite-packagesipykernelconnect.py», line 13, in
from IPython.core.profiledir import ProfileDir
File «C:UsersAceranaconda3libsite-packagesIPython_init.py», line 55, in
from .core.application import Application
File «C:UsersAceranaconda3libsite-packagesIPythoncoreapplication.py», line 23, in
from traitlets.config.application import Application, catch_config_error
File «C:UsersAceranaconda3libsite-packagestraitletsconfig_init.py», line 6, in
from .application import *
File «C:UsersAceranaconda3libsite-packagestraitletsconfigapplication.py», line 19, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File «C:UsersAceranaconda3libsite-packagestraitletsconfigconfigurable.py», line 12, in
from .loader import Config, LazyConfigValue, is_section_key
File «C:UsersAceranaconda3libsite-packagestraitletsconfigloader.py», line 16, in
from ipython_genutils.path import filefind
File «C:UsersAceranaconda3libsite-packagesipython_genutilspath.py», line 13, in
import random
File «C:UsersAcerDesktopNotebooksrandom.py», line 4, in
rand_set = random.sample(english_words_lower_set, 12)
AttributeError: module ‘random’ has no attribute ‘sample’
[I 21:57:39.524 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
Traceback (most recent call last):
File «C:UsersAceranaconda3librunpy.py», line 193, in run_module_as_main
«main«, mod_spec)
File «C:UsersAceranaconda3librunpy.py», line 85, in run_code
exec(code, run_globals)
File «C:UsersAceranaconda3libsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UsersAceranaconda3libsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UsersAceranaconda3libsite-packagesipykernelconnect.py», line 13, in
from IPython.core.profiledir import ProfileDir
File «C:UsersAceranaconda3libsite-packagesIPython_init.py», line 55, in
from .core.application import Application
File «C:UsersAceranaconda3libsite-packagesIPythoncoreapplication.py», line 23, in
from traitlets.config.application import Application, catch_config_error
File «C:UsersAceranaconda3libsite-packagestraitletsconfig_init.py», line 6, in
from .application import *
File «C:UsersAceranaconda3libsite-packagestraitletsconfigapplication.py», line 19, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File «C:UsersAceranaconda3libsite-packagestraitletsconfigconfigurable.py», line 12, in
from .loader import Config, LazyConfigValue, is_section_key
File «C:UsersAceranaconda3libsite-packagestraitletsconfigloader.py», line 16, in
from ipython_genutils.path import filefind
File «C:UsersAceranaconda3libsite-packagesipython_genutilspath.py», line 13, in
import random
File «C:UsersAcerDesktopNotebooksrandom.py», line 4, in
rand_set = random.sample(english_words_lower_set, 12)
AttributeError: module ‘random’ has no attribute ‘sample’
[I 21:57:42.541 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
Traceback (most recent call last):
File «C:UsersAceranaconda3librunpy.py», line 193, in run_module_as_main
«main«, mod_spec)
File «C:UsersAceranaconda3librunpy.py», line 85, in run_code
exec(code, run_globals)
File «C:UsersAceranaconda3libsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UsersAceranaconda3libsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UsersAceranaconda3libsite-packagesipykernelconnect.py», line 13, in
from IPython.core.profiledir import ProfileDir
File «C:UsersAceranaconda3libsite-packagesIPython_init.py», line 55, in
from .core.application import Application
File «C:UsersAceranaconda3libsite-packagesIPythoncoreapplication.py», line 23, in
from traitlets.config.application import Application, catch_config_error
File «C:UsersAceranaconda3libsite-packagestraitletsconfig_init.py», line 6, in
from .application import *
File «C:UsersAceranaconda3libsite-packagestraitletsconfigapplication.py», line 19, in
from traitlets.config.configurable import Configurable, SingletonConfigurable
File «C:UsersAceranaconda3libsite-packagestraitletsconfigconfigurable.py», line 12, in
from .loader import Config, LazyConfigValue, _is_section_key
File «C:UsersAceranaconda3libsite-packagestraitletsconfigloader.py», line 16, in
from ipython_genutils.path import filefind
File «C:UsersAceranaconda3libsite-packagesipython_genutilspath.py», line 13, in
import random
File «C:UsersAcerDesktopNotebooksrandom.py», line 4, in
rand_set = random.sample(english_words_lower_set, 12)
AttributeError: module ‘random’ has no attribute ‘sample’
[W 21:57:45.548 NotebookApp] KernelRestarter: restart failed
[W 21:57:45.549 NotebookApp] Kernel 9f1fca9d-ad2e-4231-88c9-422194adf48c died, removing from map.
[W 21:58:30.553 NotebookApp] Timeout waiting for kernel_info reply from 9f1fca9d-ad2e-4231-88c9-422194adf48c
[E 21:58:30.557 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 9f1fca9d-ad2e-4231-88c9-422194adf48c)
[W 21:58:32.097 NotebookApp] 404 GET /api/kernels/9f1fca9d-ad2e-4231-88c9-422194adf48c/channels?session_id=f495078dc6ee4f488e0f5527bc081077 (::1): Kernel does not exist: 9f1fca9d-ad2e-4231-88c9-422194adf48c
[W 21:58:32.118 NotebookApp] 404 GET /api/kernels/9f1fca9d-ad2e-4231-88c9-422194adf48c/channels?session_id=f495078dc6ee4f488e0f5527bc081077 (::1) 25.93ms referer=None
[W 21:58:35.088 NotebookApp] Replacing stale connection: 9f1fca9d-ad2e-4231-88c9-422194adf48c:f495078dc6ee4f488e0f5527bc081077
Thanks for the update. This includes much more detail and my hunch looks correct — your local random.py is in conflict with Python’s random module:
File «C:UsersAceranaconda3libsite-packagesipython_genutilspath.py», line 13, in
import random
File «C:UsersAcerDesktopNotebooksrandom.py», line 4, in
rand_set = random.sample(english_words_lower_set, 12)
AttributeError: module ‘random’ has no attribute ‘sample’
Rename C:UsersAcerDesktopNotebooksrandom.py (and address the side-effects that produces) and you should be moving forward.
If this helps anyone at times this could be a browser issue — I ran into this when using safari. Switched to Firefox and it worked fine there.
Hi, I also have a similar issue..can anyone help me out. Jupyter Notebook on Anaconda. I uninstalled and reinstalled Jupyter notebook, but the issue was not solved. It was working before but now it isn’t. Please help
[I 14:45:43.689 NotebookApp] Serving notebooks from local directory: C:Userssukle
[I 14:45:43.689 NotebookApp] Jupyter Notebook 6.2.0 is running at:
[I 14:45:43.693 NotebookApp] http://localhost:8888/?token=b16271feaf5c0c93ee17cf6b98e081d781b1a4be270d73de
[I 14:45:43.693 NotebookApp] or http://127.0.0.1:8888/?token=b16271feaf5c0c93ee17cf6b98e081d781b1a4be270d73de
[I 14:45:43.693 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:45:43.789 NotebookApp]
[W 14:45:58.772 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20210219144543 (127.0.0.1) 15.140000ms referer=http://localhost:8888/notebooks/opencv.ipynb
[I 14:45:59.193 NotebookApp] Kernel started: 2626c9a0-f3fb-4424-af05-09d19bcefac7, name: python3
Traceback (most recent call last):
File «C:anaconda3librunpy.py», line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File «C:anaconda3librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernelconnect.py», line 11, in
from IPython.core.profiledir import ProfileDir
File «C:anaconda3libsite-packagesIPython_init.py», line 56, in
from .terminal.embed import embed
File «C:anaconda3libsite-packagesIPythonterminalembed.py», line 16, in
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File «C:anaconda3libsite-packagesIPythonterminalinteractiveshell.py», line 21, in
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named ‘prompt_toolkit.formatted_text’
[I 14:46:02.133 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File «C:anaconda3librunpy.py», line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File «C:anaconda3librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernelconnect.py», line 11, in
from IPython.core.profiledir import ProfileDir
File «C:anaconda3libsite-packagesIPython_init.py», line 56, in
from .terminal.embed import embed
File «C:anaconda3libsite-packagesIPythonterminalembed.py», line 16, in
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File «C:anaconda3libsite-packagesIPythonterminalinteractiveshell.py», line 21, in
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named ‘prompt_toolkit.formatted_text’
[I 14:46:05.144 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
Traceback (most recent call last):
File «C:anaconda3librunpy.py», line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File «C:anaconda3librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernelconnect.py», line 11, in
from IPython.core.profiledir import ProfileDir
File «C:anaconda3libsite-packagesIPython_init.py», line 56, in
from .terminal.embed import embed
File «C:anaconda3libsite-packagesIPythonterminalembed.py», line 16, in
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File «C:anaconda3libsite-packagesIPythonterminalinteractiveshell.py», line 21, in
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named ‘prompt_toolkit.formatted_text’
[I 14:46:08.154 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
Traceback (most recent call last):
File «C:anaconda3librunpy.py», line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File «C:anaconda3librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernelconnect.py», line 11, in
from IPython.core.profiledir import ProfileDir
File «C:anaconda3libsite-packagesIPython_init.py», line 56, in
from .terminal.embed import embed
File «C:anaconda3libsite-packagesIPythonterminalembed.py», line 16, in
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File «C:anaconda3libsite-packagesIPythonterminalinteractiveshell.py», line 21, in
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named ‘prompt_toolkit.formatted_text’
[I 14:46:11.161 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
Traceback (most recent call last):
File «C:anaconda3librunpy.py», line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File «C:anaconda3librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:UserssukleAppDataRoamingPythonPython38site-packagesipykernelconnect.py», line 11, in
from IPython.core.profiledir import ProfileDir
File «C:anaconda3libsite-packagesIPython_init.py», line 56, in
from .terminal.embed import embed
File «C:anaconda3libsite-packagesIPythonterminalembed.py», line 16, in
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File «C:anaconda3libsite-packagesIPythonterminalinteractiveshell.py», line 21, in
from prompt_toolkit.formatted_text import PygmentsTokens
ModuleNotFoundError: No module named ‘prompt_toolkit.formatted_text’
[W 14:46:14.179 NotebookApp] KernelRestarter: restart failed
[W 14:46:20.618 NotebookApp] Kernel 2626c9a0-f3fb-4424-af05-09d19bcefac7 died, removing from map.
[W 14:46:20.620 NotebookApp] Replacing stale connection: 2626c9a0-f3fb-4424-af05-09d19bcefac7:8572e89ed13b45e684bba39942daf0fc
[W 14:46:43.206 NotebookApp] Replacing stale connection: 2626c9a0-f3fb-4424-af05-09d19bcefac7:8572e89ed13b45e684bba39942daf0fc
It looks like this issue is due to an older prompt_toolkit used by IPython . Try upgrading prompt_toolkit to its 3.0.2 or 3.0.3 releases. Since this is coming from the kernel, and if you’re using multiple environments, it’s important that the proper python command be invoked for the upgrade. To determine which python command to use,
- locate the kernel’s kernel specification directory using: jupyter kernelspec list
- open the matching directory’s kernel.json file
- use the python identified in the argv stanza in the following command.
python -m pip install —upgrade prompt_toolkit
where python is the python identified in the kernel.json file.
You should not need to restart your notebook server, just restart the kernel.
Thanks a lot for the help. It’s working again 😁
Have a similar problem but not sure what to do here. Can you help?
Thanks,
C:Usersjm273PycharmProjectspythonProjectvenvScripts>jupyter notebook
[I 2021-02-22 14:01:31.185 LabApp] JupyterLab extension loaded from c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesjupyterlab
[I 2021-02-22 14:01:31.185 LabApp] JupyterLab application directory is C:Usersjm273PycharmProjectspythonProjectvenvsharejupyterlab
[I 14:01:31.194 NotebookApp] Serving notebooks from local directory: C:Usersjm273PycharmProjectspythonProjectvenvScripts
[I 14:01:31.195 NotebookApp] Jupyter Notebook 6.2.0 is running at:
[I 14:01:31.195 NotebookApp] http://localhost:8888/?token=1cf723ee9fccea0335b8c3c15a825c15f6cecb20f26159ce
[I 14:01:31.196 NotebookApp] or http://127.0.0.1:8888/?token=1cf723ee9fccea0335b8c3c15a825c15f6cecb20f26159ce
[I 14:01:31.196 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:01:31.538 NotebookApp]
[W 14:02:49.231 NotebookApp] Notebook QC_Replacement_prod_3.6 (with ML)- with pickle load only.ipynb is not trusted
[I 14:02:57.444 NotebookApp] Kernel started: dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29, name: python3
[IPKernelApp] WARNING | Could not set permissions on F:.ipythonprofile_defaultpid
Traceback (most recent call last):
File «C:Usersjm273PythonPython37librunpy.py», line 193, in _run_module_as_main
«main«, mod_spec)
File «C:Usersjm273PythonPython37librunpy.py», line 85, in _run_code
exec(code, run_globals)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesipykernel_launcher.py», line 16, in
app.launch_new_instance()
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagestraitletsconfigapplication.py», line 844, in launch_instance
app.initialize(argv)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagestraitletsconfigapplication.py», line 87, in inner
return method(app, *args, **kwargs)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesipykernelkernelapp.py», line 559, in initialize
super(IPKernelApp, self).initialize(argv)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagestraitletsconfigapplication.py», line 87, in inner
return method(app, *args, **kwargs)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesIPythoncoreapplication.py», line 458, in initialize
self.init_profile_dir()
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesIPythoncoreapplication.py», line 362, in init_profile_dir
p = ProfileDir.find_profile_dir_by_name(self.ipython_dir, self.profile, self.config)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesIPythoncoreprofiledir.py», line 205, in find_profile_dir_by_name
return cls(location=profile_dir, config=config)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagestraitletsconfigconfigurable.py», line 82, in init
super(Configurable, self).init(**kwargs)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagestraitletstraitlets.py», line 1080, in init
super_kwargs[key] = value
File «C:Usersjm273PythonPython37libcontextlib.py», line 119, in exit
next(self.gen)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagestraitletstraitlets.py», line 1214, in hold_trait_notifications
self.notify_change(change)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagestraitletstraitlets.py», line 1227, in notify_change
return self._notify_observers(change)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagestraitletstraitlets.py», line 1264, in _notify_observers
c(event)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesIPythoncoreprofiledir.py», line 69, in _location_changed
self.check_dirs()
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesIPythoncoreprofiledir.py», line 134, in check_dirs
self.check_startup_dir()
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesIPythoncoreprofiledir.py», line 111, in check_startup_dir
self._mkdir(self.startup_dir)
File «c:usersjm273pycharmprojectspythonprojectvenvlibsite-packagesIPythoncoreprofiledir.py», line 96, in _mkdir
os.mkdir(path)
FileNotFoundError: [WinError 3] The system cannot find the path specified: ‘F:.ipythonprofile_defaultstartup’
[I 14:03:15.424 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
[IPKernelApp] ERROR | couldn’t create path F:.ipythonextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonextensions’
[IPKernelApp] ERROR | couldn’t create path F:.ipythonnbextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonnbextensions’
[IPKernelApp] CRITICAL | Could not create profile: ‘default’
[I 14:03:18.480 NotebookApp] KernelRestarter: restarting kernel (2/5), keep random ports
[IPKernelApp] ERROR | couldn’t create path F:.ipythonextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonextensions’
[IPKernelApp] ERROR | couldn’t create path F:.ipythonnbextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonnbextensions’
[IPKernelApp] CRITICAL | Could not create profile: ‘default’
[I 14:03:30.839 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
[IPKernelApp] ERROR | couldn’t create path F:.ipythonextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonextensions’
[IPKernelApp] ERROR | couldn’t create path F:.ipythonnbextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonnbextensions’
[IPKernelApp] CRITICAL | Could not create profile: ‘default’
[I 14:03:33.897 NotebookApp] KernelRestarter: restarting kernel (2/5), keep random ports
[IPKernelApp] ERROR | couldn’t create path F:.ipythonextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonextensions’
[IPKernelApp] ERROR | couldn’t create path F:.ipythonnbextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonnbextensions’
[IPKernelApp] CRITICAL | Could not create profile: ‘default’
[I 14:03:36.975 NotebookApp] KernelRestarter: restarting kernel (3/5), keep random ports
[IPKernelApp] ERROR | couldn’t create path F:.ipythonextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonextensions’
[IPKernelApp] ERROR | couldn’t create path F:.ipythonnbextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonnbextensions’
[IPKernelApp] CRITICAL | Could not create profile: ‘default’
[I 14:03:40.057 NotebookApp] KernelRestarter: restarting kernel (4/5), keep random ports
[IPKernelApp] ERROR | couldn’t create path F:.ipythonextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonextensions’
[IPKernelApp] ERROR | couldn’t create path F:.ipythonnbextensions: [WinError 1251] This operation is supported only when you are connected to the server: ‘F:.ipythonnbextensions’
[IPKernelApp] CRITICAL | Could not create profile: ‘default’
[W 14:03:43.117 NotebookApp] KernelRestarter: restart failed
[W 14:03:43.117 NotebookApp] Kernel dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29 died, removing from map.
[W 14:03:57.556 NotebookApp] Timeout waiting for kernel_info reply from dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29
[E 14:03:57.559 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29)
[W 14:03:58.609 NotebookApp] 404 GET /api/kernels/dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29/channels?session_id=ef4be499bd77499b891f5656565880f4 (::1): Kernel does not exist: dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29
[W 14:03:58.653 NotebookApp] 404 GET /api/kernels/dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29/channels?session_id=ef4be499bd77499b891f5656565880f4 (::1) 46.910000ms referer=None
[W 14:04:00.706 NotebookApp] Replacing stale connection: dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29:ef4be499bd77499b891f5656565880f4
[W 14:08:04.977 NotebookApp] Replacing stale connection: dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29:ef4be499bd77499b891f5656565880f4
[W 14:12:13.007 NotebookApp] Replacing stale connection: dfac873f-21d9-4fae-a0c9-6ad3c4e2ac29:ef4be499bd77499b891f5656565880f4
Hi @jackmurak — your issue looks specific to IPython configuration and the fact that you happen to be spanning Windows drive (C and F). Unfortunately, I’m not familiar very familiar with either, although I do know that there’s a history of frustration with content management’s confinement to a particular drive.
Do these folders exist on your system?
F:.ipythonprofile_defaultstartup ,
F:.ipythonextensions ,
F:.ipythonnbextensions
Do similar folders exist in $HOME and is $HOME pointing to a different drive?
What output do you get from jupyter kernelspec list ?
For the kernel you’re trying to use, is its kernelspec folder (i.e., the folder listed in the command’s output) on your C drive, but the contents of that folder’s kernel.json point to F?
What output do you get from jupyter —paths —debug ?
Perhaps some of this will shed some light for both of us.
Do these folders exist on your system?
F:.ipythonprofile_defaultstartup,
F:.ipythonextensions,
F:.ipythonnbextensions
Yes. I’m not sure why, I thought I installed everything to C: ?
Do similar folders exist in $HOME and is $HOME pointing to a different drive?
Not sure how to do this? I’m not using anaconda.
What output do you get from jupyter kernelspec list?
C:Usersjm273PycharmProjectspythonProjectvenvScripts>jupyter kernel spec list
[KernelApp] Starting kernel ‘python3’
[KernelApp] Connection file: C:Usersjm273AppDataRoamingjupyterruntimekernel-08d7fe83-7b3a-4959-936b-9310815cb6a9.json
[KernelApp] To connect a client: —existing kernel-08d7fe83-7b3a-4959-936b-9310815cb6a9.json
For the kernel you’re trying to use, is its kernelspec folder (i.e., the folder listed in the command’s output) on your C drive, but the contents of that folder’s kernel.json point to F?
What output do you get from jupyter —paths —debug?
C:Usersjm273PycharmProjectspythonProjectvenvScripts>jupyter —paths —debug
JUPYTER_PREFER_ENV_PATH is not set, making the user-level path preferred over the environment-level path for data and config
JUPYTER_NO_CONFIG is not set, so we use the full path list for config
JUPYTER_CONFIG_PATH is not set, so we do not prepend anything to the config paths
JUPYTER_CONFIG_DIR is not set, so we use the default user-level config directory
JUPYTER_PATH is not set, so we do not prepend anything to the data paths
JUPYTER_DATA_DIR is not set, so we use the default user-level data directory
JUPYTER_RUNTIME_DIR is not set, so we use the default runtime directory
config:
F:.jupyter
c:usersjm273pycharmprojectspythonprojectvenvetcjupyter
C:ProgramDatajupyter
data:
C:Usersjm273AppDataRoamingjupyter
c:usersjm273pycharmprojectspythonprojectvenvsharejupyter
C:ProgramDatajupyter
runtime:
C:Usersjm273AppDataRoamingjupyterruntime
Is there a way to point everything at my C: ?
$HOME is an environment variable indicating where your user’s «default» directory resides. On Windows systems, all environment variables can be viewed from the CMD prompt using set . You can display individual values using echo %VARIABLE_NAME% . I suspect the value of your HOME variable is set to F: for whatever reason.
What is the output of echo %HOME% ?
Since it sounds like you weren’t aware of anything on your F drive and given the other path values, you might try unsettling your HOME env entirely, or set it to C:Usersjm273 since I suspect that is your user’s «default» directory. (That is, when you log into your system, are you placed into directory C:Usersjm273 ?)
I think once jupyter —paths stops displaying stuff from F: , you’ll be good to go.
Another thing to check is where python.exe is coming from. I believe the Windows command for this is where python.exe . If it’s pointing to F: , then you might look into installing python in your C: drive.
What is the value of echo %PATH% ? Your PATH may be configured to prefer items in F: over C: and that may need to be adjusted.
I apologize for the number of questions here. I’m not sure at which level to approach things.
Since it sounds like you weren’t aware of anything on your F drive and given the other path values, you might try unsettling your HOME env entirely, or set it to C:Usersjm273 since I suspect that is your user’s «default» directory. (That is, when you log into your system, are you placed into directory C:Usersjm273?)
How do I do this?
where python.exe
C:Usersjm273PycharmProjectspythonProjectvenvScriptspython.exe
What is the value of echo %PATH%? Your PATH may be configured to prefer items in F: over C: and that may need to be adjusted.
C:>echo %PATH%
C:IBMv117 InformationServer/jdk32jrebin;C:IBMv117 InformationServer/jdk32jrebinj9vm;C:IBMv117 InformationServerASBNodelibcpp;C:IBMv117 InformationServerASBNodeappsproxycppvc60MT_dllbin;C:Program Files (x86)MKS Toolkitmksnt;C:PROGRA 2MKSTOO 1bin64;C:PROGRA 2MKSTOO 1bin;C:PROGRA 2MKSTOO 1binX11;C:PROGRA 2MKSTOO 1mksnt;C:IBMv115SP6InformationServer/jdk32jrebin;C:IBMv115SP6InformationServer/jdk32jrebinj9vm;C:IBMv115SP6InformationServerASBNodelibcpp;C:IBMv115SP6InformationServerASBNodeappsproxycppvc60MT_dllbin;c:oracleproduct12.1.0client_1bin;C:Program Files (x86)Common FilesOracleJavajavapath;C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:Program Files (x86)WebexWebexApplications;C:Program Files (x86)Pulse SecureVC142.CRTX64;C:Program Files (x86)Pulse SecureVC142.CRTX86;C:Program Files (x86)SymantecVIP Access Client;C:SQLDLL;C:SQLBIN;C:SQL_12_5OCS-12_5dll;C:SQL_12_5OCS-12_5lib3p;C:SQL_12_5OCS-12_5BIN;C:DB2SQLLIBBIN;C:DB2SQLLIBFUNCTION;C:DB2SQLLIBSAMPLESREPL;C:Usersjm273AppDataLocalMicrosoftWindowsApps;;C:Usersjm273AppDataLocalJetBrainsPyCharm Community Edition 2020.3.3bin;
thanks for all your help. looks like i need to remove F: from a file somewhere?
Thanks for the information Jack. Yeah, I suspect you should remove or update the value of your HOME environment variable.
Managing environment variables on Windows is a bit different (than Unix systems) but easily found via an internet search. Here’s one such link: https://www.wikihow.com/Create-an-Environment-Variable-in-Windows-10
If you’re going to set it (versus remove it), I would set it to C:Usersjm273 since I suspect that’s the desired value. Also, remember to terminate any existing command windows after setting the new value since those settings only take effect on new window instances.
Got it. Thanks so much Kevin for your help!
How can I repay?
Right on — glad you’re moving forward!
anyone know anything about installing ibm_db ? that’s my next hurdle 🙂
For general, Jupyter-related, topics, you’ll be better off posting to the discourse forums: https://discourse.jupyter.org/. However, if you’re talking about installing ibm_db in general, that is external to Jupyter and the product’s website/documentation should be consulted. Once the issue can be linked to Jupyter, we’ll be happy to help. Good luck.
hi, @kevin-bates I’m facing the same problem, can you help, please.
[I 11:11:25.239 NotebookApp] JupyterLab extension loaded from C:AnacondaLibsite-packagesjupyterlab
[I 11:11:25.239 NotebookApp] JupyterLab application directory is C:Anacondasharejupyterlab
[I 11:11:25.975 NotebookApp] Serving notebooks from local directory: C:Usersuser
[I 11:11:25.975 NotebookApp] The Jupyter Notebook is running at:
[I 11:11:25.975 NotebookApp] http://localhost:8888/?token=e048d2b1d4a5f1c88c60cf8d25a54962e21ff3c6b142837a
[I 11:11:25.976 NotebookApp] or http://127.0.0.1:8888/?token=e048d2b1d4a5f1c88c60cf8d25a54962e21ff3c6b142837a
[I 11:11:25.976 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 11:11:26.230 NotebookApp]
[I 11:11:50.118 NotebookApp] Kernel started: af549d07-bd5d-4674-aad0-d0504f9d3a00
Traceback (most recent call last):
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 197, in run_module_as_main
return run_code(code, main_globals, None,
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:AnacondaLibsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:AnacondaLibsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:AnacondaLibsite-packagesipykernelconnect.py», line 18, in
import jupyter_client
File «C:AnacondaLibsite-packagesjupyter_client_init.py», line 4, in
from .connect import *
File «C:AnacondaLibsite-packagesjupyter_clientconnect.py», line 24, in
import zmq
File «C:AnacondaLibsite-packageszmq_init.py», line 47, in
from zmq import backend
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 40, in
reraise(*exc_info)
File «C:AnacondaLibsite-packageszmqutilssixcerpt.py», line 34, in reraise
raise value
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 27, in
ns = select_backend(first)
File «C:AnacondaLibsite-packageszmqbackendselect.py», line 28, in select_backend
mod = import(name, fromlist=public_api)
File «C:AnacondaLibsite-packageszmqbackendcython_init.py», line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name ‘constants’ from partially initialized module ‘zmq.backend.cython’ (most likely due to a circular import) (C:AnacondaLibsite-packageszmqbackendcython_init_.py)
[I 11:11:53.103 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 197, in run_module_as_main
return run_code(code, main_globals, None,
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:AnacondaLibsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:AnacondaLibsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:AnacondaLibsite-packagesipykernelconnect.py», line 18, in
import jupyter_client
File «C:AnacondaLibsite-packagesjupyter_client_init.py», line 4, in
from .connect import *
File «C:AnacondaLibsite-packagesjupyter_clientconnect.py», line 24, in
import zmq
File «C:AnacondaLibsite-packageszmq_init.py», line 47, in
from zmq import backend
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 40, in
reraise(*exc_info)
File «C:AnacondaLibsite-packageszmqutilssixcerpt.py», line 34, in reraise
raise value
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 27, in
ns = select_backend(first)
File «C:AnacondaLibsite-packageszmqbackendselect.py», line 28, in select_backend
mod = import(name, fromlist=public_api)
File «C:AnacondaLibsite-packageszmqbackendcython_init.py», line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name ‘constants’ from partially initialized module ‘zmq.backend.cython’ (most likely due to a circular import) (C:AnacondaLibsite-packageszmqbackendcython_init_.py)
[I 11:11:56.135 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
Traceback (most recent call last):
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 197, in run_module_as_main
return run_code(code, main_globals, None,
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:AnacondaLibsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:AnacondaLibsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:AnacondaLibsite-packagesipykernelconnect.py», line 18, in
import jupyter_client
File «C:AnacondaLibsite-packagesjupyter_client_init.py», line 4, in
from .connect import *
File «C:AnacondaLibsite-packagesjupyter_clientconnect.py», line 24, in
import zmq
File «C:AnacondaLibsite-packageszmq_init.py», line 47, in
from zmq import backend
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 40, in
reraise(*exc_info)
File «C:AnacondaLibsite-packageszmqutilssixcerpt.py», line 34, in reraise
raise value
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 27, in
ns = select_backend(first)
File «C:AnacondaLibsite-packageszmqbackendselect.py», line 28, in select_backend
mod = import(name, fromlist=public_api)
File «C:AnacondaLibsite-packageszmqbackendcython_init.py», line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name ‘constants’ from partially initialized module ‘zmq.backend.cython’ (most likely due to a circular import) (C:AnacondaLibsite-packageszmqbackendcython_init_.py)
[I 11:11:59.169 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
Traceback (most recent call last):
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 197, in run_module_as_main
return run_code(code, main_globals, None,
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:AnacondaLibsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:AnacondaLibsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:AnacondaLibsite-packagesipykernelconnect.py», line 18, in
import jupyter_client
File «C:AnacondaLibsite-packagesjupyter_client_init.py», line 4, in
from .connect import *
File «C:AnacondaLibsite-packagesjupyter_clientconnect.py», line 24, in
import zmq
File «C:AnacondaLibsite-packageszmq_init.py», line 47, in
from zmq import backend
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 40, in
reraise(*exc_info)
File «C:AnacondaLibsite-packageszmqutilssixcerpt.py», line 34, in reraise
raise value
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 27, in
ns = select_backend(first)
File «C:AnacondaLibsite-packageszmqbackendselect.py», line 28, in select_backend
mod = import(name, fromlist=public_api)
File «C:AnacondaLibsite-packageszmqbackendcython_init.py», line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name ‘constants’ from partially initialized module ‘zmq.backend.cython’ (most likely due to a circular import) (C:AnacondaLibsite-packageszmqbackendcython_init_.py)
[I 11:12:02.214 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
Traceback (most recent call last):
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 197, in run_module_as_main
return run_code(code, main_globals, None,
File «C:UsersuserAppDataLocalProgramsPythonPython39librunpy.py», line 87, in run_code
exec(code, run_globals)
File «C:AnacondaLibsite-packagesipykernel_launcher.py», line 15, in
from ipykernel import kernelapp as app
File «C:AnacondaLibsite-packagesipykernel_init.py», line 2, in
from .connect import *
File «C:AnacondaLibsite-packagesipykernelconnect.py», line 18, in
import jupyter_client
File «C:AnacondaLibsite-packagesjupyter_client_init.py», line 4, in
from .connect import *
File «C:AnacondaLibsite-packagesjupyter_clientconnect.py», line 24, in
import zmq
File «C:AnacondaLibsite-packageszmq_init.py», line 47, in
from zmq import backend
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 40, in
reraise(*exc_info)
File «C:AnacondaLibsite-packageszmqutilssixcerpt.py», line 34, in reraise
raise value
File «C:AnacondaLibsite-packageszmqbackend_init_.py», line 27, in
ns = select_backend(first)
File «C:AnacondaLibsite-packageszmqbackendselect.py», line 28, in select_backend
mod = import(name, fromlist=public_api)
File «C:AnacondaLibsite-packageszmqbackendcython_init.py», line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name ‘constants’ from partially initialized module ‘zmq.backend.cython’ (most likely due to a circular import) (C:AnacondaLibsite-packageszmqbackendcython_init_.py)
[W 11:12:05.257 NotebookApp] KernelRestarter: restart failed
[W 11:12:05.264 NotebookApp] Kernel af549d07-bd5d-4674-aad0-d0504f9d3a00 died, removing from map.
Hi @mikekwabs — thanks for the ping. The core failure is that the kernel is failing to start. Why the kernel fails to start can be due to a myriad of things (37 actually 😄 ) that usually require some analysis of logged traceback information. Unless obvious, I usually try to find an error string repeated in the traceback — typically on every restart attempt — and google that.
In this specific case, a search for «ImportError: cannot import name ‘constants’ from partially initialized module ‘zmq.backend.cython’» would have led to a couple of closed issues (#5543, #5689) — both of which suggest tickling the pyzmq installation. I would start there.
Hey Kevin Bates, I am struggling the same here!
Источник
I have installed Jupyter Lab but when I launch it I get an error: «Server Connection Error Invalid response: 500 Internal Server Error»
My python set up is Anaconda which probably has something to do with this.
jupyter lab
[I 11:09:41.874 LabApp] [jupyter_nbextensions_configurator] enabled
0.2.8
[I 11:09:41.884 LabApp] JupyterLab beta preview extension loaded from
/anaconda/lib/python3.6/site-packages/jupyterlab
[I 11:09:41.884 LabApp] JupyterLab application directory is
/anaconda/share/jupyter/lab
[W 11:09:41.887 LabApp] JupyterLab server extension not enabled,
manually loading…
[I 11:09:41.888 LabApp] JupyterLab beta preview extension loaded from
/anaconda/lib/python3.6/site-packages/jupyterlab
[I 11:09:41.888 LabApp] JupyterLab application directory is
/anaconda/share/jupyter/lab
[I 11:09:41.896 LabApp] Serving contents
[I 11:09:41.896 LabApp] 0 active kernels
[I 11:09:41.896 LabApp] The Jupyter Notebook is running at:
http://localhost:8888/?token=ad00b52a346b46663662980c13b3da3edb1ecf8614ef1237
[I 11:09:41.896 LabApp] Use Control-C to stop this server and shut
down all kernels (twice to skip confirmation).
[C 11:09:41.897 LabApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=ad00b52a346b46663662980c13b3da3edb1ecf8614ef1237
[I 11:09:42.090 LabApp] Accepting one-time-token-authenticated
connection from ::1
[W 11:09:42.740 LabApp] Could not determine jupyterlab build status
without nodejs
[E 11:09:42.748 LabApp] Unhandled error in API request
Traceback (most recent call last):
File «/anaconda/lib/python3.6/site-packages/notebook/base/handlers.py»,
line 516, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1055, in run
value = future.result()
File «/anaconda/lib/python3.6/site-packages/tornado/concurrent.py», line
238, in result
raise_exc_info(self._exc_info)
File «», line 4, in raise_exc_info
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1069, in run
yielded = self.gen.send(value)
File «/anaconda/lib/python3.6/site-packages/notebook/services/contents/handlers.py»,
line 126, in get
if model[‘type’] == ‘directory’ and content:
TypeError: list indices must be integers or slices, not str
[E 11:09:42.753 LabApp] {
«Host»: «localhost:8888»,
«Connection»: «keep-alive»,
«User-Agent»: «Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162
Safari/537.36»,
«Authorization»: «token ad00b52a346b46663662980c13b3da3edb1ecf8614ef1237»,
«Content-Type»: «application/json»,
«Accept»: «/«,
«Referer»: «http://localhost:8888/lab»,
«Accept-Encoding»: «gzip, deflate, br»,
«Accept-Language»: «en-GB,en-US;q=0.9,en;q=0.8»,
«Cookie»: «_xsrf=2|a0d1ccab|73a01490f127ec24c30835607aea1050|1520242814;
username-localhost-8888=»2|1:0|10:1521630582|23:username-localhost-8888|44:MTQwZDBhNzZlYzY5NDIxZWIyNzUxMWNkMzczZWNiMWU=|79900638f4dc105393e048f2236331a6f46520ff43b4ff010066d0196b260a00″»
}
[E 11:09:42.753 LabApp] 500 GET /api/contents/?content=1&1521630582746
(::1) 5.28ms referer=http://localhost:8888/lab
[W 11:11:05.761 LabApp] Could not determine jupyterlab build status
without nodejs
[E 11:11:05.770 LabApp] Unhandled error in API request
Traceback (most recent call last):
File «/anaconda/lib/python3.6/site-packages/notebook/base/handlers.py»,
line 516, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1055, in run
value = future.result()
File «/anaconda/lib/python3.6/site-packages/tornado/concurrent.py», line
238, in result
raise_exc_info(self._exc_info)
File «», line 4, in raise_exc_info
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1069, in run
yielded = self.gen.send(value)
File «/anaconda/lib/python3.6/site-packages/notebook/services/contents/handlers.py»,
line 126, in get
if model[‘type’] == ‘directory’ and content:
TypeError: list indices must be integers or slices, not str
[E 11:11:05.770 LabApp] {
«Host»: «localhost:8888»,
«Connection»: «keep-alive»,
«User-Agent»: «Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162
Safari/537.36»,
«Authorization»: «token ad00b52a346b46663662980c13b3da3edb1ecf8614ef1237»,
«Content-Type»: «application/json»,
«Accept»: «/«,
«Referer»: «http://localhost:8888/lab»,
«Accept-Encoding»: «gzip, deflate, br»,
«Accept-Language»: «en-GB,en-US;q=0.9,en;q=0.8»,
«Cookie»: «_xsrf=2|a0d1ccab|73a01490f127ec24c30835607aea1050|1520242814;
username-localhost-8888=»2|1:0|10:1521630665|23:username-localhost-8888|44:Y2JlODAxNzA3MDY4NDIwYWE4YTM5NGZlZDNhMThlYjE=|7ae8038d90bbf8f4d44811f23462b14cce1e930fc7f000b31c01e68a84245818″»
}
[E 11:11:05.770 LabApp] 500 GET /api/contents/?content=1&1521630665767
(::1) 1.21ms referer=http://localhost:8888/lab
[E 11:12:45.773 LabApp] Unhandled error in API request
Traceback (most recent call last):
File «/anaconda/lib/python3.6/site-packages/notebook/base/handlers.py»,
line 516, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1055, in run
value = future.result()
File «/anaconda/lib/python3.6/site-packages/tornado/concurrent.py», line
238, in result
raise_exc_info(self._exc_info)
File «», line 4, in raise_exc_info
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1069, in run
yielded = self.gen.send(value)
File «/anaconda/lib/python3.6/site-packages/notebook/services/contents/handlers.py»,
line 126, in get
if model[‘type’] == ‘directory’ and content:
TypeError: list indices must be integers or slices, not str [E 11:12:45.774 LabApp] {
«Host»: «localhost:8888»,
«Connection»: «keep-alive»,
«User-Agent»: «Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162
Safari/537.36»,
«Authorization»: «token ad00b52a346b46663662980c13b3da3edb1ecf8614ef1237»,
«Content-Type»: «application/json»,
«Accept»: «/«,
«Referer»: «http://localhost:8888/lab»,
«Accept-Encoding»: «gzip, deflate, br»,
«Accept-Language»: «en-GB,en-US;q=0.9,en;q=0.8»,
«Cookie»: «_xsrf=2|a0d1ccab|73a01490f127ec24c30835607aea1050|1520242814;
username-localhost-8888=»2|1:0|10:1521630765|23:username-localhost-8888|44:ODFhYWQ3ZDU5OWE5NDdmYTlkODhkNmMxYzg2MDlkYWI=|0dc6d8a192c6e5494080ca950923b1b291086c2d87c2fbcd709488469ac03370″»
}
[E 11:12:45.774 LabApp] 500 GET /api/contents/?content=1&1521630765770
(::1) 1.80ms referer=http://localhost:8888/lab
[E 11:14:26.770 LabApp] Unhandled error in API request
Traceback (most recent call last):
File «/anaconda/lib/python3.6/site-packages/notebook/base/handlers.py»,
line 516, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1055, in run
value = future.result()
File «/anaconda/lib/python3.6/site-packages/tornado/concurrent.py», line
238, in result
raise_exc_info(self._exc_info)
File «», line 4, in raise_exc_info
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1069, in run
yielded = self.gen.send(value)
File «/anaconda/lib/python3.6/site-packages/notebook/services/contents/handlers.py»,
line 126, in get
if model[‘type’] == ‘directory’ and content:
TypeError: list indices must be integers or slices, not str
[E 11:14:26.771 LabApp] {
«Host»: «localhost:8888»,
«Connection»: «keep-alive»,
«User-Agent»: «Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162
Safari/537.36»,
«Authorization»: «token ad00b52a346b46663662980c13b3da3edb1ecf8614ef1237»,
«Content-Type»: «application/json»,
«Accept»: «/«,
«Referer»: «http://localhost:8888/lab»,
«Accept-Encoding»: «gzip, deflate, br»,
«Accept-Language»: «en-GB,en-US;q=0.9,en;q=0.8»,
«Cookie»: «_xsrf=2|a0d1ccab|73a01490f127ec24c30835607aea1050|1520242814;
username-localhost-8888=»2|1:0|10:1521630865|23:username-localhost-8888|44:MDNhNGVlZjQxZGYxNGZmN2I3ZjIyNmYzMTI2MDE5ZDI=|700d7876594cb797ba50d10173ed9132af5988cb1c0dc82aba0ded957fef24e5″»
}
[E 11:14:26.772 LabApp] 500 GET /api/contents/?content=1&1521630866769
(::1) 1.59ms referer=http://localhost:8888/lab [E 11:16:07.776 LabApp]
Unhandled error in API request
Traceback (most recent call last):
File «/anaconda/lib/python3.6/site-packages/notebook/base/handlers.py»,
line 516, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1055, in run
value = future.result()
File «/anaconda/lib/python3.6/site-packages/tornado/concurrent.py», line
238, in result
raise_exc_info(self._exc_info)
File «», line 4, in raise_exc_info
File «/anaconda/lib/python3.6/site-packages/tornado/gen.py», line 1069, in run
yielded = self.gen.send(value)
File «/anaconda/lib/python3.6/site-packages/notebook/services/contents/handlers.py»,
line 126, in get
if model[‘type’] == ‘directory’ and content:
TypeError: list indices must be integers or slices, not str
[E 11:16:07.777 LabApp] {
«Host»: «localhost:8888»,
«Connection»: «keep-alive»,
«User-Agent»: «Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162
Safari/537.36»,
«Authorization»: «token ad00b52a346b46663662980c13b3da3edb1ecf8614ef1237»,
«Content-Type»: «application/json»,
«Accept»: «/«,
«Referer»: «http://localhost:8888/lab»,
«Accept-Encoding»: «gzip, deflate, br»,
«Accept-Language»: «en-GB,en-US;q=0.9,en;q=0.8»,
«Cookie»: «_xsrf=2|a0d1ccab|73a01490f127ec24c30835607aea1050|1520242814;
username-localhost-8888=»2|1:0|10:1521630965|23:username-localhost-8888|44:MDc0MjlmODBlYTM4NDBjZDhlZjgyOTEzYTA2OTExMmU=|997eec50aacef9512c6adb31f8badfa3145c86c13b0d45914585a5a62c852e11″»
}
[E 11:16:07.777 LabApp] 500 GET /api/contents/?content=1&1521630967773
(::1) 1.71ms referer=http://localhost:8888/lab
I have started a course on Jetson Nano from the NVIDIA Deep Learning Institute. For that I have to connect to Nano via a browser in headless mode and connect to it via a remote JupyterLab interface. I try to login to the Jupyter server running in Nano using Mozilla Firefox, but it is repeatedly asking for a login password. A similar thing happens with Chrome, in that it entered into the notebook but continues to send ‘Server Connection Error’ with the following message:
A connection to the Jupyter server could not be established. JupyterLab will continue trying to reconnect. Check your network connection or Jupyter server configuration.
When trying to connect with Chrome, I see the following message logs in the browser console:
vendors~main.4184bdce490c13d11f74.js:144505 Download the React DevTools for a better development experience: https://fb.me/react-devtools
vendors~main.4184bdce490c13d11f74.js:164508 Starting application in workspace: /lab
:8888/lab/api/workspaces/lab?1563387693000:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/metrics?1563387692942:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/api/terminals?1563387692023:1 Failed to load resource: net::ERR_NETWORK_CHANGED
vendors~main.4184bdce490c13d11f74.js:168401 Uncaught (in promise) TypeError: Failed to fetch
vendors~main.4184bdce490c13d11f74.js:168016 Uncaught (in promise) TypeError: Cannot read property 'reject' of null
at Object.<anonymous> (vendors~main.4184bdce490c13d11f74.js:168016)
at Generator.next (<anonymous>)
at fulfilled (vendors~main.4184bdce490c13d11f74.js:167716)
vendors~main.4184bdce490c13d11f74.js:168016 Uncaught (in promise) TypeError: Cannot read property 'reject' of null
at Object.<anonymous> (vendors~main.4184bdce490c13d11f74.js:168016)
at Generator.next (<anonymous>)
at fulfilled (vendors~main.4184bdce490c13d11f74.js:167716)
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 1s
:8888/api/sessions?1563387717828:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/api/terminals?1563387717832:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
lab:1 Uncaught (in promise) TypeError: Failed to fetch
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 2s
:8888/api/sessions?1563387737829:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
:8888/api/terminals?1563387737833:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/lab/api/workspaces/lab?1563387734525:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
vendors~main.4184bdce490c13d11f74.js:168401 Uncaught (in promise) TypeError: Failed to fetch
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 4s
:8888/api/terminals?1563387757845:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/api/sessions?1563387757830:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/api/contents/?content=1&1563387763199:1 Failed to load resource: net::ERR_NETWORK_CHANGED
vendors~main.4184bdce490c13d11f74.js:45867 Showing error: TypeError: Failed to fetch
showErrorMessage @ vendors~main.4184bdce490c13d11f74.js:45867
lab:1 Uncaught (in promise) TypeError: Failed to fetch
lab:1 Uncaught (in promise) TypeError: Failed to fetch
vendors~main.4184bdce490c13d11f74.js:228372 Terminal reconnected
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 1s
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 2s
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 4s
vendors~main.4184bdce490c13d11f74.js:228372 Terminal reconnected
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 1s
:8888/api/sessions?1563387847816:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/api/terminals?1563387847820:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
lab:1 Uncaught (in promise) TypeError: Failed to fetch
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 2s
:8888/api/contents/?content=1&1563387864177:1 Failed to load resource: net::ERR_NETWORK_CHANGED
vendors~main.4184bdce490c13d11f74.js:45867 Showing error: TypeError: Failed to fetch
showErrorMessage @ vendors~main.4184bdce490c13d11f74.js:45867
:8888/api/sessions?1563387867805:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/api/terminals?1563387867807:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
lab:1 Uncaught (in promise) TypeError: Failed to fetch
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 4s
vendors~main.4184bdce490c13d11f74.js:228372 Terminal reconnected
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 1s
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
:8888/api/sessions?1563388047775:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
:8888/api/terminals?1563388047780:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
:8888/api/contents/?content=1&1563388052148:1 Failed to load resource: net::ERR_NETWORK_CHANGED
vendors~main.4184bdce490c13d11f74.js:45867 Showing error: TypeError: Failed to fetch
showErrorMessage @ vendors~main.4184bdce490c13d11f74.js:45867
:8888/api/kernelspecs?1563388053775:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
vendors~main.4184bdce490c13d11f74.js:228264 Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
at http://192.168.55.1:8888/lab/static/vendors~main.4184bdce490c13d11f74.js:228264:24
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 2s
:8888/api/sessions?1563388077778:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
:8888/api/terminals?1563388077788:1 Failed to load resource: net::ERR_NETWORK_CHANGED
lab:1 Uncaught (in promise) TypeError: Failed to fetch
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 4s
vendors~main.4184bdce490c13d11f74.js:228372 Terminal reconnected
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 1s
:8888/api/sessions?1563388367726:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/api/terminals?1563388367730:1 Failed to load resource: net::ERR_NETWORK_CHANGED
:8888/api/contents/?content=1&1563388370099:1 Failed to load resource: net::ERR_NETWORK_CHANGED
vendors~main.4184bdce490c13d11f74.js:45867 Showing error: TypeError: Failed to fetch
showErrorMessage @ vendors~main.4184bdce490c13d11f74.js:45867
lab:1 Uncaught (in promise) TypeError: Failed to fetch
lab:1 Uncaught (in promise) TypeError: Failed to fetch
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 2s
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
vendors~main.4184bdce490c13d11f74.js:228375 Terminal reconnect failed Event
(anonymous) @ vendors~main.4184bdce490c13d11f74.js:228375
vendors~main.4184bdce490c13d11f74.js:228347 Terminal websocket closed: 1006
socket.onclose @ vendors~main.4184bdce490c13d11f74.js:228347
vendors~main.4184bdce490c13d11f74.js:228363 Terminal will attempt to reconnect in 4s
vendors~main.4184bdce490c13d11f74.js:228372 Terminal reconnected
manager.js:36 [Violation] 'setInterval' handler took 68ms
default.js:195 Terminal websocket closed: 1006
socket.onclose @ default.js:195
default.js:211 Terminal will attempt to reconnect in 1s
default.js:195 Terminal websocket closed: 1006
socket.onclose @ default.js:195
default.js:211 Terminal will attempt to reconnect in 1s
manager.js:43 [Violation] 'setInterval' handler took 71ms
serverconnection.js:192 GET http://192.168.55.1:8888/api/contents/?content=1&1563388601068 net::ERR_NETWORK_CHANGED
handleRequest @ serverconnection.js:192
makeRequest @ serverconnection.js:75
get @ index.js:457
get @ index.js:153
(anonymous) @ model.js:231
fulfilled @ model.js:6
Promise.then (async)
step @ model.js:8
(anonymous) @ model.js:9
push.MM3R.__awaiter @ model.js:5
cd @ model.js:208
refresh @ model.js:198
(anonymous) @ model.js:545
dialog.js:32 Showing error: TypeError: Failed to fetch
showErrorMessage @ dialog.js:32
_onConnectionFailure @ browser.js:206
invokeSlot @ index.js:475
emit @ index.js:433
push.qUp9.Signal.emit @ index.js:106
(anonymous) @ model.js:263
Promise.catch (async)
(anonymous) @ model.js:253
fulfilled @ model.js:6
Promise.then (async)
step @ model.js:8
(anonymous) @ model.js:9
push.MM3R.__awaiter @ model.js:5
cd @ model.js:208
refresh @ model.js:198
(anonymous) @ model.js:545
serverconnection.js:192 GET http://192.168.55.1:8888/api/kernelspecs?1563388602694 net::ERR_NETWORK_CHANGED
handleRequest @ serverconnection.js:192
makeRequest @ serverconnection.js:75
getSpecs @ default.js:1206
getSpecs @ default.js:1074
getSpecs @ kernel.js:41
_refreshSpecs @ manager.js:284
(anonymous) @ manager.js:48
serverconnection.js:102 Uncaught (in promise) TypeError: Failed to fetch
NetworkError @ serverconnection.js:102
(anonymous) @ serverconnection.js:194
Promise.then (async)
_refreshSpecs @ manager.js:284
(anonymous) @ manager.js:48
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/2' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
_initializeSocket @ default.js:156
(anonymous) @ default.js:218
default.js:223 Terminal reconnect failed Event {isTrusted: true, type: "error", target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …}
(anonymous) @ default.js:223
Promise.catch (async)
(anonymous) @ default.js:222
setTimeout (async)
_reconnectSocket @ default.js:214
socket.onclose @ default.js:196
default.js:195 Terminal websocket closed: 1006
socket.onclose @ default.js:195
default.js:211 Terminal will attempt to reconnect in 2s
default.js:165 WebSocket connection to 'ws://192.168.55.1:8888/terminals/websocket/1' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
(anonymous) @ default.js:165
_initializeSocket @ default.js:156
(anonymous) @ default.js:218
default.js:223 Terminal reconnect failed Event {isTrusted: true, type: "error", target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …}
(anonymous) @ default.js:223
Promise.catch (async)
(anonymous) @ default.js:222
setTimeout (async)
_reconnectSocket @ default.js:214
socket.onclose @ default.js:196
default.js:195 Terminal websocket closed: 1006
socket.onclose @ default.js:195
default.js:211 Terminal will attempt to reconnect in 2s
default.js:220 Terminal reconnected
default.js:220 Terminal reconnected
SERVER CONNECTION ERROR, CONTENTSMODEL IS UNDEFINED #6456
Describe the bug I get an error message that I can find reported in any of the repos/stackoverflow etc. Upon opening in the browser I get a popup message: Server …
From github.com
SERVER CONNECTION ERROR 500 WITH JUPYTER LAB — STACK OVERFLOW
Teams. Q&A for work. Connect and share knowledge within a single location that is structured and easy to search. Learn more
From stackoverflow.com
ERROR: JUPYTER NOTEBOOK SERVER CONNECTION ERROR , NOT WORKING
Try running JupyterLab in debug mode, i.e. jupyter lab —debug, to see if it produces any more information. Because this repository is watched by only a small crew of people (see this notice), I’d also suggest asking your question on the Jupyter Discourse page. There are more Jupyter community members watching that channel who can help. Thanks!
From github.com
KERNEL DOES NOT RECONNECT AFTER DISCONNECTION #6910 — GITHUB
Describe the bug. Kernel does not reconnect after disconnection. To Reproduce. Open jupyter lab on server, connect to server on client via ‘ssh -L 8888:localhost:8888 server’ (I am not sure if you need ssh tunnel to see the bug), open the browser at localhost:8888 and open a python notebook, play with it. Close ssh tunnel for some seconds.
From github.com
SETTING UP A JUPYTER LAB REMOTE SERVER | KERNEL OF TRUTH
On This Page. Step 1: Password Setup. Step 2: Using SSL for Encrypted Communication. Step 3: Running a Public notebook server (via the web) Step 4: Run Jupyter Lab/Notebook. Step 5: Open Jupyter Lab/Notebook on your local machine. If you haven’t yet used Jupyter Lab I highly recommend it. In any case, this post is for both Jupyter Lab and …
From agent-jay.github.io
SERVER CONNECTION ERROR — JUPYTERLAB · ISSUE #379 · STATCAN/DAAAS
This error sometimes appears when using JupyterLab. Server Connection Error A connection to the Jupyter server could not be established. JupyterLab will continue …
From github.com
SERVER CONNECTION ERROR IN DOCKER CONTAINER · ISSUE #9342 · …
I am using a Docker container to run and work with JupyterLab on Windows 10 Home. In order to make Docker Desktop available on such Windows version I use WSL integration and it works well since the container is able to run and I have acc…
From github.com
CONNECTION TO NOTEBOOK SERVER COULD NOT BE ESTABLISHED. — GITHUB
jupyter 4.4.0 ipykernel 5.1.0 tensorflow-gpu 1.11.0. Message displayed Jupyter notebook in Chrome: A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration. Execution from Anaconda prompt with: jupyter notebook model1.ipynb —debug
From github.com
JUPYTER NOTEBOOK KERNEL NOT CONNECTING — STACK OVERFLOW
I have previously used Jupyter Notebook (python 2 and 3) on my mac. After not using it for a while, there seems to be a problem I am unable to fix. When starting the notebook from terminal using the command Jupyter notebook, and then select a notebook I want to work with, I get the error: «A connection to the notebook server could not be …
From stackoverflow.com
NETWORK DISCONNECT TO JUPYTERLAB PROMPTS SERVER NOT …
I did one «jupyter lab build» and I could validate that all was fine: the new jlab was launched; I installed back all the extensions (w/ —no-build) and ran a final «jupyter lab build» So far, I could not confirm that it is solving the issue, since problems only happen (sometimes) with many users connected and using slow/unstable network …
From github.com
SERVER CONNECTION ERROR: FAILED TO FETCH; CACHE SEEMS TIED TO
Hello! I am using jupyterlab in a jupyterhub setup, and the following started happening to me last week, but doesn't effect the other users. After working on a given hub instance, jupyterlab gi…
From github.com
JUPYTER LAB CRASHES INSTANTLY · ISSUE #12071 — GITHUB
A connection to the Jupyter server could not be established. JupyterLab will continue trying to reconnect. Check your network >connection or Jupyter server configuration. The is what it shows in the terminal: (def) PS C:Usersnaine> jupyter-lab [W 2022-02-16 16:56:54.564 ServerApp] The module ‘jupyterlab_code_formatter’ could not be found.
From github.com
JUPYTER NOTEBOOK KERNEL NOT CONNECTING: CONNECTION FAILED
A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration. Jupyter Notebook also states that it is «connecting to kernel» constantly. When I run jupyter notebook —debug on my command line I get this —
From github.com
JUPYTER NOTEBOOK: ERROR WHILE CONNECTING TO SERVER — STACK OVERFLOW
Then I tried adding it to my Jupyter Notebook using: python -m ipykernel install —user —name=Python3.8.5 [Python3.8.5 is the name of the environment] I succeeded in adding it to the jupyter notebook! But when I’m trying to access it using Jupyter Notebook , this is what it is showing: The traceback in the jupyter notebook command line is as …
From stackoverflow.com
500 SERVER CONNECTION. ERROR — JUPYTER LAB — STACK OVERFLOW
While trying to launch Jupiter Lab from Anaconda Navigator, I am continuously getting ‘Server Connection Error- Invalid Response: 500 Internal Server Error’. Tried some solutions of Issues tracked on Github but nothing works. enter image description here
From stackoverflow.com
SERVER CONNECTION ERROR-A CONNECTION TO THE JUPYTER SERVER
Server Connection error-A connection to the Jupyter server could not be established. Jupyterlab will continue trying to connect. Check your network connection or Jupyter server configuration. #9827. Closed UNS-AI opened this issue Feb 19, 2021 · 5 comments Closed Server Connection error-A connection to the Jupyter server could not …
From github.com
Hi All,
Has anyone had success running Jupyterlab on their pixelbook? I’m on the dev channel — build 68.0.3437.0 — and have been playing with Crostini for a day or two. apt-get is installing things, and I can run them without issues, but I am having trouble with Jupyter/jupyterlab — if I run:
python3 -m jupyterlab
I can see the output from Jupyterlab starting its server:
[I 17:32:49.533 LabApp] Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
[W 17:32:49.927 LabApp] JupyterLab server extension not enabled, manually loading...
[I 17:32:49.940 LabApp] JupyterLab beta preview extension loaded from /home/*username*/.local/lib/python3.5/site-packages/jupyterlab
[I 17:32:49.941 LabApp] JupyterLab application directory is /home/*username*/.local/share/jupyter/lab
[I 17:32:49.948 LabApp] Serving notebooks from local directory: /home/*username*
[I 17:32:49.948 LabApp] 0 active kernels
[I 17:32:49.948 LabApp] The Jupyter Notebook is running at:
[I 17:32:49.948 LabApp] http://localhost:8888/?token=1db5c6389dc60463b1d238c2ae0db228e1d52e0cc61b4b7f
[I 17:32:49.948 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:32:49.949 LabApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=1db5c6389dc60463b1d238c2ae0db228e1d52e0cc61b4b7f&token=1db5c6389dc60463b1d238c2ae0db228e1d52e0cc61b4b7f
And waiting for me to connect — but when I try to do so (from Chrome) I get a localhost refusing connections error — I’m guessing it’s DNS related or that there’s really strong IPTables filtering going on that’s preventing connections to 127.0.0.1 — has anyone been able to get around this? Interestingly, Jupyterlab opens the link automatically when it starts, but that IP address is in the 100.115.92.XXX range, rather than local.
Has anyone had luck with Jupyter/JupyterLab? It’s definitely my preferred python environment if I can get it running — alternatively, I might set up an AWS instance and connect to that now that I have a terminal I can do it on, but honestly I’d love to have a local instance for offline (e.g. on planes) work.