-
Notifications
You must be signed in to change notification settings - Fork 5k
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
404 Error after upgrading from Notebook 6.5 to Notebook7.0.0rc2 #6952
Comments
Hi @sfonekk! Thank you for creating this issue. Could you please provide more information and context about this issue? |
Hi @andrii-i Before notebook 6.5.4, in order to experience notebook 7.0.0rc2, I upgraded the notebook version to 7.0.0rc2, started jupyter notebook, and got the above error. |
Package notebook took 0.0001s to import | | | |_ __ | | | | ___ Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions. https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html Please note that updating to Notebook 7 might break some of your extensions. [I 2023-06-27 11:24:02.221 ServerApp] nbclassic | extension was successfully loaded.
[I 2023-06-27 11:24:02.563 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server |
Hi @sfonekk, do you encounter this problem if you do a fresh install of Notebook 7 in a new environment? |
I'm having what I think is a related issue. When I run jupyter using pip-run, it fails when launching notebook with the following output:
And the UI fails to load in the browser. Extracting the error:
This issue emerged semi-recently and can be mitigated by pinning to
The issue seems to be that in jupyterlab-server 2.22, something changed with how the schema resources are located, and it's no longer correctly finding "share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json". It appears to be attempting to find it in the sys.prefix (in my case
The file is in fact getting installed:
It's just failing to be located when it's not found relative to Installing to a virtualenv works around the issue, but it would be nice if it could be made to work with |
Correction - the regression happens between jupyterlab-server 2.22 and 2.23. |
Upon further testing, it looks like between v2.22.0 and v2.22.1 the behavior changes. I don't see how that's even plausible. The code changed so little. I'll keep digging. |
I put in a couple of breakpoints where the code changes, but neither of those breakpoints were hit when starting up:
|
Although I thought I'd isolated the issue to just @ diff --unified deps-2.22.0.txt deps-2.22.1.txt
--- deps-2.22.0.txt 2024-03-28 14:23:54
+++ deps-2.22.1.txt 2024-03-28 14:24:09
@@ -7,6 +7,7 @@
argon2-cffi-bindings 21.2.0
arrow 1.3.0
asttokens 2.4.1
+async-lru 2.0.4
attrs 23.2.0
autocommand 2.2.2
Babel 2.14.0
@@ -19,16 +20,17 @@
debugpy 1.8.1
decorator 5.1.1
defusedxml 0.7.1
-entrypoints 0.4
exceptiongroup 1.2.0
executing 2.0.1
fastjsonschema 2.19.1
fqdn 1.5.1
+h11 0.14.0
+httpcore 1.0.5
+httpx 0.27.0
idna 3.6
inflect 7.0.0
ipykernel 6.29.4
ipython 8.22.2
-ipython-genutils 0.2.0
ipywidgets 8.1.2
isoduration 20.11.0
jaraco.context 4.3.0
@@ -42,25 +44,26 @@
jsonschema 4.21.1
jsonschema-specifications 2023.12.1
jupyter 1.0.0
-jupyter_client 7.4.9
+jupyter_client 8.6.1
jupyter-console 6.6.3
jupyter_core 5.7.2
jupyter-events 0.10.0
+jupyter-lsp 2.2.4
jupyter_server 2.13.0
jupyter_server_terminals 0.5.3
+jupyterlab 4.1.5
jupyterlab_pygments 0.3.0
-jupyterlab_server 2.22.0
+jupyterlab_server 2.22.1
jupyterlab_widgets 3.0.10
MarkupSafe 2.1.5
matplotlib-inline 0.1.6
mistune 3.0.2
more-itertools 10.2.0
-nbclassic 1.0.0
nbclient 0.10.0
nbconvert 7.16.3
nbformat 5.10.3
nest-asyncio 1.6.0
-notebook 6.5.6
+notebook 7.1.2
notebook_shim 0.2.4
overrides 7.7.0
packaging 24.0
@@ -83,7 +86,7 @@
python-dateutil 2.9.0.post0
python-json-logger 2.0.7
PyYAML 6.0.1
-pyzmq 24.0.1
+pyzmq 25.1.2
qtconsole 5.5.1
QtPy 2.4.1
referencing 0.34.0 How is that possible? |
Aha. It's because later versions of |
404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1687798647746 (::1): Schema not found: C:/Users/lenovo/AppData/Roaming/Python/share/jupyter/lab/schemas@jupyter-notebook/application-extension\shell.json
[W 2023-06-27 00:57:27.756 LabApp] wrote error: 'Schema not found: C:/Users/lenovo/AppData/Roaming/Python/share/jupyter/lab/schemas\@jupyter-notebook/application-extension\shell.json'
Traceback (most recent call last):
File "D:\anaconda3\lib\site-packages\tornado\web.py", line 1711, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "D:\anaconda3\lib\site-packages\tornado\web.py", line 3208, in wrapper
return method(self, *args, **kwargs)
File "C:\Users\lenovo\AppData\Roaming\Python\Python310\site-packages\jupyterlab_server\settings_handler.py", line 48, in get
result, warnings = get_settings(
File "C:\Users\lenovo\AppData\Roaming\Python\Python310\site-packages\jupyterlab_server\settings_utils.py", line 370, in get_settings
schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
File "C:\Users\lenovo\AppData\Roaming\Python\Python310\site-packages\jupyterlab_server\settings_utils.py", line 47, in _get_schema
raise web.HTTPError(404, notfound_error % path)
tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: C:/Users/lenovo/AppData/Roaming/Python/share/jupyter/lab/schemas@jupyter-notebook/application-extension\shell.json)
[W 2023-06-27 00:57:27.762 LabApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1687798647746 (298c5db38adf4e708fbe9e62b888a982@::1) 12.96ms referer=http://localhost:8888/tree
The text was updated successfully, but these errors were encountered: