-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Labels
Milestone
Description
I am getting an error when launching jupyter.
I uninstalled everything including python (with brew) and still not solving the issue.
The folder /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/
doesn't contain the jupyter
folder.
[I 2023-07-20 23:41:40.032 ServerApp] Package notebook took 0.0000s to import
[I 2023-07-20 23:41:40.034 ServerApp] notebook | extension was successfully linked.
[I 2023-07-20 23:41:40.077 ServerApp] notebook | extension was successfully loaded.
[I 2023-07-20 23:41:40.078 ServerApp] Serving notebooks from local directory: /Users/<>/dev
[I 2023-07-20 23:41:40.078 ServerApp] Jupyter Server 2.7.0 is running at:
[I 2023-07-20 23:41:40.078 ServerApp] http://localhost:8888/tree?token=f9035f29fdb2ce27b7c4664295b20b6ad5aa3315937fecc5
[I 2023-07-20 23:41:40.078 ServerApp] http://127.0.0.1:8888/tree?token=f9035f29fdb2ce27b7c4664295b20b6ad5aa3315937fecc5
[I 2023-07-20 23:41:40.078 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-07-20 23:41:40.086 ServerApp]
To access the server, open this file in a browser:
file:///Users/<>/Library/Jupyter/runtime/jpserver-6423-open.html
Or copy and paste one of these URLs:
http://localhost:8888/tree?token=f9035f29fdb2ce27b7c4664295b20b6ad5aa3315937fecc5
http://127.0.0.1:8888/tree?token=f9035f29fdb2ce27b7c4664295b20b6ad5aa3315937fecc5
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[W 2023-07-20 23:41:42.105 JupyterNotebookApp] Missing or misshapen translation settings schema:
HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-07-20 23:41:42.106 JupyterNotebookApp] Settings directory does not exist at /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas
[W 2023-07-20 23:41:42.146 JupyterNotebookApp] Missing or misshapen translation settings schema:
HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-07-20 23:41:42.146 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1689910902143 (::1): Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json
[W 2023-07-20 23:41:42.146 JupyterNotebookApp] wrote error: 'Schema not found: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json'
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 3290, in wrapper
return method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
result, warnings = get_settings(
^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/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: /opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json)
[W 2023-07-20 23:41:42.149 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1689910902143 (7f80a9c368014c73b2be2492888a488c@::1) 3.94ms referer=http://localhost:8888/tree
Here the lib I am ussing:
ipykernel==6.24.0
notebook==7.0.0
notebook_shim==0.2.3
Python 3.11.4
Jupyter lab would work using
jupyter lab --app-dir /opt/homebrew/share/jupyter/lab
How do I change the path to run jupyter notebook
?
Thank you
devnoname120, lucascr91, akrentsel and jaracoJadianZheng
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
jtpio commentedon Jul 25, 2023
Thanks @taktikal17 for reporting the issue 👍
Just to confirm: does JupyterLab work without specifying the
--app-dir
option?defjaf commentedon Jul 25, 2023
I am seeing something similar, also possibly with some weird interactions with jupyterlab. (I think on one of my machines it is failing at a different
*.json
schema than in this traceback, but I don't have access right now.)Also possibly related:
ssh352 commentedon Jul 26, 2023
same issue here, notebook version 6.5.4 had no issue.
❯ jupyter --version
Selected Jupyter core packages...
IPython : 8.14.0
ipykernel : 6.24.0
ipywidgets : 8.0.7
jupyter_client : 8.3.0
jupyter_core : 5.3.1
jupyter_server : 2.7.0
jupyterlab : 4.0.3
nbclient : 0.8.0
nbconvert : 7.7.2
nbformat : 5.9.1
notebook : 7.0.0
qtconsole : 5.4.3
traitlets : 5.9.0
jtpio commentedon Jul 27, 2023
cc @andrii-i @RRosio @ericsnekbytes @echarles @afshin
If one of you has a Mac and would be able to look into this that would be great, thanks 🙏
defjaf commentedon Jul 27, 2023
A further possibly useful bit of info:
On my setup, Python 3.11 is installed by homebrew, but all packages, including jupyter, notebook, etc. are installed with pip.
defjaf commentedon Jul 27, 2023
I note that
is a partial fix: it still gives error messages in the terminal, but the interface issues mentioned above seem to be better.
So it is possible that this is an issue of "miscommunication" between the homebrew build and jupyter?
defjaf commentedon Jul 29, 2023
Further to my previous partial fix using
JUPYTER_PATH
andJUPYTER_CONFIG_PATH
I note that in fact
jupyter lab
behaves better with those environment variables set as above: without them, it does not seem to correctly recognise extensions. (To be precise,app-dir
does not solve these problems.) So I wonder if we need to make this a broader issue?In detail: without the variables set, the "Installed" list is empty and, for example, there is no sidebar entry for ipyparallel even when installed:
When run with those variables set, I get:
68 remaining items
willhama commentedon Apr 21, 2024
It seems Jupyter Notebook is not installed anymore with Jupyterlab by default.
Run
jupyter --version
and check if the notebook has a version at all.
If it says 'not installed', install it manually:
pip install notebook
Hope that helps.
qmy777 commentedon Apr 24, 2024
it works for me!!! THX!
stepps00 commentedon Aug 6, 2024
Simply running the suggested command by @njo fixed this issue for me, thank you!
The command was:
With the second path being the one given in the
HTTP 404: Not Found
error.Znxja commentedon Sep 5, 2024
this works for me perfectly, i have brew python and pip jupyter and thats the point
the jupyter file downloaded from pip locates at different directory not the one expected by path , which is /opt/homebrew/Cellar/python@3.11/3.11.6/Frameworks/Python.framework/Versions/3.11/share
HarsimarSingh23 commentedon Sep 12, 2024
I encountered this issue due to this -
python -m jupyter notebook
(something fishy here)I am pretty much noob about understanding the whole issue but if you want to quickly run it, try -
python -m venv venv # create a new venv
source venv/bin/activate
pip install -U notebook
jupyter notebook
Should be able to quickly run this.
p0las commentedon Oct 10, 2024
we are on windows and have the same issue. as I understand the problem jupyter is searching for the configs in python installation folder but in our case we have jupyter outside of it.
jupyter --paths
lists the correct path to configs as the first entry, however the errors in the log point to a different directory. It seems that jupyter ignores the paths and
JUPYTER_CONFIG_PATH
and always searches in the python installation.we had to downgrade to
<7
to get it running.the easiest way to test it is by installing jupyter to a custom path:
python -m "pip" install "notebook" --prefix=my_custom_location
even if this is added to the environment, jupyter ignores this location and tries to load configs from python folder directly. seems like a bug.
this works fine:
python -m "pip" install "notebook<7" --prefix=my_custom_location
excitoon commentedon Mar 30, 2025
Not only schema; stylesheets as well
excitoon commentedon Mar 30, 2025
Workaround:
jaraco commentedon May 11, 2025
This issue is very likely a duplicate of #6952, where I describe another scenario where the issue occurs (using pip-run to launch notebook).