Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Schema not found' with python3.13.0 while launching "jupyter notebook" #7588

Open
SanjeevYaswanth opened this issue Feb 18, 2025 · 1 comment
Labels
bug status:Needs Info status:Needs Triage Applied to issues that need triage

Comments

@SanjeevYaswanth
Copy link

Installed Python 3.13.0
Installed jupyter and notebook packages with 3.13.0 venv
Ran jupyter notebook

Facing the below Schema not found errors and jupyter page is hung with logo

[W 2025-02-18 16:30:22.742 JupyterNotebookApp] 'kernel_manager_class' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2025-02-18 16:30:22.744 ServerApp] notebook | error linking extension: The 'kernel_manager_class' trait of <jupyter_server.serverapp.ServerApp object at 0x7f5c5488de80> instance must be a type, but 'notebook.services.kernels.kernelmanager.AsyncMappingKernelManager' could not be imported
    Traceback (most recent call last):
      File "/cli/python-packages/site-packages/traitlets/traitlets.py", line 2139, in validate
        value = self._resolve_string(value)
      File "/cli/python-packages/site-packages/traitlets/traitlets.py", line 2015, in _resolve_string
        return import_item(string)
      File "/cli/python-packages/site-packages/traitlets/utils/importstring.py", line 33, in import_item
        module = __import__(package, fromlist=[obj])
    ModuleNotFoundError: No module named 'notebook.services'
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "/cli/python-packages/site-packages/jupyter_server/extension/manager.py", line 346, in link_extension
        extension.link_all_points(self.serverapp)
        ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
      File "/cli/python-packages/site-packages/jupyter_server/extension/manager.py", line 228, in link_all_points
        self.link_point(point_name, serverapp)
        ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
      File "/cli/python-packages/site-packages/jupyter_server/extension/manager.py", line 218, in link_point
        point.link(serverapp)
        ~~~~~~~~~~^^^^^^^^^^^
      File "/cli/python-packages/site-packages/jupyter_server/extension/manager.py", line 140, in link
        linker(serverapp)
        ~~~~~~^^^^^^^^^^^
      File "/cli/python-packages/site-packages/jupyter_server/extension/application.py", line 412, in _link_jupyter_server_extension
        self.serverapp.update_config(self.config)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
      File "/cli/python-packages/site-packages/traitlets/config/configurable.py", line 244, in update_config
        self._load_config(config)
        ~~~~~~~~~~~~~~~~~^^^^^^^^
      File "/cli/python-packages/site-packages/traitlets/config/configurable.py", line 193, in _load_config
        setattr(self, name, deepcopy(config_value))
        ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/cli/python-packages/site-packages/traitlets/traitlets.py", line 716, in __set__
        self.set(obj, value)
        ~~~~~~~~^^^^^^^^^^^^
      File "/cli/python-packages/site-packages/traitlets/traitlets.py", line 690, in set
        new_value = self._validate(obj, value)
      File "/cli/python-packages/site-packages/traitlets/traitlets.py", line 722, in _validate
        value = self.validate(obj, value)
      File "/cli/python-packages/site-packages/traitlets/traitlets.py", line 2141, in validate
        raise TraitError(
        ...<2 lines>...
        ) from e
    traitlets.traitlets.TraitError: The 'kernel_manager_class' trait of <jupyter_server.serverapp.ServerApp object at 0x7f5c5488de80> instance must be a type, but 'notebook.services.kernels.kernelmanager.AsyncMappingKernelManager' could not be imported
[I 2025-02-18 16:30:22.788 ServerApp] notebook | extension was successfully loaded.
[I 2025-02-18 16:30:22.788 ServerApp] The port 8888 is already in use, trying another port.
[I 2025-02-18 16:30:22.788 ServerApp] The port 8889 is already in use, trying another port.
[I 2025-02-18 16:30:22.788 ServerApp] Serving notebooks from local directory: /bin
[I 2025-02-18 16:30:22.788 ServerApp] Jupyter Server 2.15.0 is running at:
[I 2025-02-18 16:30:22.788 ServerApp] http://localhost:8890/tree?token=5a7df587a4f7c751dc951ffc9c53b0cf3c753b846b638cec
[I 2025-02-18 16:30:22.788 ServerApp]     http://127.0.0.1:8890/tree?token=5a7df587a4f7c751dc951ffc9c53b0cf3c753b846b638cec
[I 2025-02-18 16:30:22.788 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2025-02-18 16:30:22.818 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///home/.local/share/jupyter/runtime/jpserver-1551240-open.html
    Or copy and paste one of these URLs:
        http://localhost:8890/tree?token=5a7df587a4f7c751dc951ffc9c53b0cf3c753b846b638cec
        http://127.0.0.1:8890/tree?token=5a7df587a4f7c751dc951ffc9c53b0cf3c753b846b638cec
[W 2025-02-18 16:30:30.682 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /tps/lnx64/python-3.13.0/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2025-02-18 16:30:30.682 JupyterNotebookApp] Settings directory does not exist at /tps/lnx64/python-3.13.0/share/jupyter/lab/schemas
[W 2025-02-18 16:30:30.774 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /tps/lnx64/python-3.13.0/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2025-02-18 16:30:30.775 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1739876430756 (127.0.0.1): Schema not found: /tps/lnx64/python-3.13.0/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json
[W 2025-02-18 16:30:30.775 JupyterNotebookApp] wrote error: 'Schema not found: /tps/lnx64/python-3.13.0/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json'
    Traceback (most recent call last):
      File "/cli/python-packages/site-packages/tornado/web.py", line 1788, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/cli/python-packages/site-packages/tornado/web.py", line 3301, in wrapper
        return method(self, *args, **kwargs)
      File "/cli/python-packages/site-packages/jupyterlab_server/settings_handler.py", line 58, in get
        result, warnings = get_settings(
                           ~~~~~~~~~~~~^
            self.app_settings_dir,
            ^^^^^^^^^^^^^^^^^^^^^^
        ...<6 lines>...
            ids_only=ids_only,
            ^^^^^^^^^^^^^^^^^^
        )
        ^
      File "/cli/python-packages/site-packages/jupyterlab_server/settings_utils.py", line 385, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
                          ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/cli/python-packages/site-packages/jupyterlab_server/settings_utils.py", line 61, in _get_schema
        raise web.HTTPError(404, notfound_error % path)

Image

Could any one help on these errors???

@SanjeevYaswanth SanjeevYaswanth added bug status:Needs Triage Applied to issues that need triage labels Feb 18, 2025
@andrii-i
Copy link
Contributor

Hi @SanjeevYaswanth. Thank you for creating this issue. I was not able to reproduce this in notebook 7.3.2. Could you please advise which version of notebook you are using? You can find out by running jupyter --version or jupyter troubleshoot.

There was a similarly-looking issue #2875. Could you please give it and this particular suggestion a look #2875 (comment) and see if it would help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status:Needs Info status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

2 participants