|
Bugzilla – Full Text Bug Listing |
| Summary: | Cannot run jupyter-lab. I keep getting a 404 error. | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Tom Ban <banerjee.soumyadipta> |
| Component: | Other | Assignee: | Benjamin Greiner <code> |
| Status: | RESOLVED INVALID | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | banerjee.soumyadipta |
| Version: | Current | Flags: | code:
needinfo?
(banerjee.soumyadipta) |
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | Describes the ouput to jupyter lab | ||
Your log complains about a lot of extensions which are not mandatory for the core package but seem to be required by your custom configuration. It looks like when you "updated your python setup", you forgot to update/install them, too. - Try running jupyter lab --core-mode - Try to install the missing extensiosn. Note that elyra isnot in Tumbleweed, you seem to mix in pip packages. - Remove the registration of extensions from your local config. Unless you can reproduce on a pristine Tumbleweed, I would say this is not a distribution package issue. Thank you for your comment. - jupyter lab --core-mode works fine. So, it must be the issue with the extensions. I get >> jupyter labextension list `sys_prefix` level settings are read-only, using `user` level for migration to `lockedExtensions` JupyterLab v4.1.8 /home/shom/.local/share/jupyter/labextensions nbdime-jupyterlab v2.1.1 [32menabled[0m [31m X[0m jupyterlab-snippets v0.4.1 [32menabled[0m [31m X[0m (python, jupyterlab-snippets) @krassowski/jupyterlab-lsp v3.10.1 [32menabled[0m [32mOK[0m (python, jupyterlab-lsp) @jupyterlab/git v0.37.1 [32menabled[0m [31m X[0m (python, jupyterlab-git) @jupyter-server/resource-usage v0.6.1 [32menabled[0m [31m X[0m (python, jupyter-resource-usage) /usr/share/jupyter/labextensions jupyterlab_pygments v0.3.0 [32menabled[0m [32mOK[0m (python, jupyterlab_pygments) ipyparallel-labextension v8.8.0 [32menabled[0m [32mOK[0m @jupyter-widgets/jupyterlab-manager v5.0.10 [32menabled[0m [32mOK[0m (python, jupyterlab_widgets) @jupyter/collaboration-extension v2.0.11 [32menabled[0m [32mOK[0m (python, jupyter_collaboration) @jupyter-notebook/lab-extension v7.1.2 [32menabled[0m [32mOK[0m The following extensions are outdated: nbdime-jupyterlab jupyterlab-snippets @jupyterlab/git @jupyter-server/resource-usage Consider checking if an update is available for these packages. Disabled extensions: @jupyterlab/filebrowser-extension:defaultFileBrowser But when I try to delete these packages I keep running into problems. >> pip uninstall nbdime-jupyterlab DEPRECATION: Loading egg at /usr/lib64/python3.11/site-packages/TBB-2021.12.0-py3.11-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330 error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try zypper install python311-xyz, where xyz is the package you are trying to install. If you wish to install a non-rpm packaged Python package, create a virtual environment using python3.11 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. If you wish to install a non-rpm packaged Python application, it may be easiest to use `pipx install xyz`, which will manage a virtual environment for you. Install pipx via `zypper install python311-pipx` . note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. Reading installed packages... 'nbdime-jupyterlab' not found in package names. Trying capabilities. No provider of 'nbdime-jupyterlab' found. Resolving package dependencies... Nothing to do. where as >> sudo zypper rm nbdime-jupyterlab Reading installed packages... 'nbdime-jupyterlab' not found in package names. Trying capabilities. No provider of 'nbdime-jupyterlab' found. Resolving package dependencies... Nothing to do. At this point, I am happy to remove all extensions and start fresh. So any suggestion, help in this regard will be appreciated. Thank you so much for your time! RPM system packages have the python3-/python311- prefix and usually come with a jupyter- prefixed package for files which are agnostic to the python version. Yoru error message is again because you mix ~/.local packages with system packages. All packages in ~/.local are handled by pip --user. Never run pip as root or without the --user argument outside of a venv. > >> zypper info --requires jupyter-nbdime-jupyterlab > Loading repository data... > Reading installed packages... > > > Information for package jupyter-nbdime-jupyterlab: > -------------------------------------------------- > Repository : repo-oss > Name : jupyter-nbdime-jupyterlab > Version : 3.0.1-16.2 > Arch : noarch > Vendor : openSUSE > Installed Size : 365.6 KiB > Installed : No > Status : not installed > Source package : python-nbdime-4.0.1-16.2.src > Upstream URL : https://github.com/jupyter/nbdime > Summary : A JupyterLab extension for showing Notebook diffs > Description : > The nbdime package provides tools for diffing and merging of > Jupyter Notebooks. > > This package provides the JupyterLab extension. > Requires : [2] > jupyter-jupyterlab > python3dist(nbdime) = 4.0.1 > > >> zypper info --provides python311-nbdime > Loading repository data... > Reading installed packages... > > > Information for package python311-nbdime: > ----------------------------------------- > Repository : repo-oss > Name : python311-nbdime > Version : 4.0.1-16.2 > Arch : noarch > Vendor : openSUSE > Installed Size : 20.2 MiB > Installed : No > Status : not installed > Source package : python-nbdime-4.0.1-16.2.src > Upstream URL : https://github.com/jupyter/nbdime > Summary : Tools for diffing and merging Jupyter Notebooks > Description : > The nbdime package provides tools for diffing and merging of > Jupyter Notebooks. > > This package provides the python interface. > Provides : [6] > python3dist(nbdime) = 4.0.1 > python3-jupyter_nbdime = 4.0.1-16.2 > python3-nbdime = 4.0.1-16.2 > python3.11dist(nbdime) = 4.0.1 > python311-jupyter_nbdime = 4.0.1-16.2 > python311-nbdime = 4.0.1-16.2 > The PyPI package has a plain "nbdime" name and provides the nbdime-jupyterlab extension. So you would uninstall that by `pip uninstall nbdime`. https://pypi.org/project/nbdime/ |
Created attachment 874528 [details] Describes the ouput to jupyter lab I cannot seem to open a new jupyter notebook on the browser. I keep getting a 404 error. The output is attached. The problem started after i updated my python setup.