G Tgz changed bug 1193962
What Removed Added
Priority P5 - None P1 - Urgent
Component Other Development
Severity Normal Critical

Comment # 1 on bug 1193962 from
Summary:
  On OpenSuse Tumbleweed, cannot to start Jupyter Notebook for Python.

Impact:
  Critical blocker. Cannot do any work at all in Jupyter Notebook.

Root Cause:
  The 'Send2Trash>=1.8.0' distribution was not found and is required by 
Jupyter notebook.
  This is due to an update to jupyter-notebook on 28Oct2021.
  See 'Other relevant technical information', below, for details.

  The installed version of Send2Trash (1.5.0-1.10) is older than the version
required (1.8.0).

Suggested solution:
  Please update 'Send2Trash' in Tumbleweed to version 1.8.0 or newer.

Detailed Problem Report:
-------- START
-----------------------------------------------------------------
[I 19:48:16.933 NotebookApp] Loading IPython parallel extension
[I 2022-01-07 19:48:18.098 LabApp] JupyterLab extension loaded from
/usr/lib/python3.8/site-packages/jupyterlab
[I 2022-01-07 19:48:18.098 LabApp] JupyterLab application directory is
/usr/share/jupyter/lab
[I 19:48:18.107 NotebookApp] Serving notebooks from local directory: /home/<...
snip ...>
[I 19:48:18.107 NotebookApp] Jupyter Notebook 6.4.6 is running at:
[I 19:48:18.107 NotebookApp] http://localhost:8888/?token=<... snip ...>
[I 19:48:18.107 NotebookApp]  or http://127.0.0.1:8888/?token=<... snip ...>
[I 19:48:18.107 NotebookApp] Use Control-C to stop this server and shut down
all kernels (twice to skip confirmation).
[C 19:48:18.136 NotebookApp] 

    To access the notebook, open this file in a browser:
        file:///home/<... snip
...>/.local/share/jupyter/runtime/nbserver-2105-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=<... snip ...>
     or http://127.0.0.1:8888/?token=<... snip ...>
[W 19:48:25.168 NotebookApp] Error loading kernelspec 'python3'
    Traceback (most recent call last):
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line
568, in _build_master
        ws.require(__requires__)
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line
886, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line
777, in resolve
        raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.ContextualVersionConflict: (Send2Trash 1.5.0
(/usr/lib/python3.8/site-packages), Requirement.parse('Send2Trash>=1.8.0'),
{'notebook'})

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python3.8/site-packages/jupyter_client/kernelspec.py",
line 314, in get_all_specs
        spec = self._get_kernel_spec_by_name(kname, resource_dir)
      File "/usr/lib/python3.8/site-packages/jupyter_client/kernelspec.py",
line 247, in _get_kernel_spec_by_name
        from ipykernel.kernelspec import RESOURCES, get_kernel_dict
      File "/usr/lib/python3.8/site-packages/ipykernel/kernelspec.py", line 16,
in <module>
        from .ipkernel import _is_debugpy_available
      File "/usr/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 38,
in <module>
        from .debugger import Debugger
      File "/usr/lib/python3.8/site-packages/ipykernel/debugger.py", line 20,
in <module>
        from debugpy.server import api  # noqa
      File "/usr/lib64/python3.8/site-packages/debugpy/server/__init__.py",
line 9, in <module>
        import debugpy._vendored.force_pydevd  # noqa
      File
"/usr/lib64/python3.8/site-packages/debugpy/_vendored/force_pydevd.py", line
45, in <module>
        preimport('pydevd', [
      File "/usr/lib64/python3.8/site-packages/debugpy/_vendored/__init__.py",
line 128, in preimport
        import_module(name)
      File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in
import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File
"/usr/lib64/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py",
line 5, in <module>
        __import__('pkg_resources').declare_namespace(__name__)
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line
3243, in <module>
        def _initialize_master_working_set():
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line
3226, in _call_aside
        f(*args, **kwargs)
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line
3255, in _initialize_master_working_set
        working_set = WorkingSet._build_master()
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line
570, in _build_master
        return cls._build_from_requirements(__requires__)
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line
583, in _build_from_requirements
        dists = ws.resolve(reqs, Environment())
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line
772, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'Send2Trash>=1.8.0' distribution
was not found and is required by notebook
-------- END
-------------------------------------------------------------------


Other relevant technical information:
-------- START
-----------------------------------------------------------------
Jupyter Notebook: Changelog for v6.4.6
https://jupyter-notebook.readthedocs.io/en/stable/changelog.html#id1
  Bugs fixed
  Fix send2trash tests failing on Windows #6127 (@dolfinus)

Full Changelog for v6.4.6
Comparing changes v6.4.5 - v6.4.6
https://github.com/jupyter/notebook/compare/v6.4.5...160c27d3c23dafe8b42240571db21b0d5cbae2fe

Merge pull request #6127 from dolfinus/update_send2trash
Oct 28, 2021
https://github.com/jupyter/notebook/commit/eb3a1c24839205afcef0ba65ace2309d38300a2b
-------- END
-------------------------------------------------------------------

Software versions:
-------- START
-----------------------------------------------------------------
$> cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20220103"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20220103"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20220103"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
$>



$> sudo zypper info jupyter-notebook
Loading repository data...
Reading installed packages...


Information for package jupyter-notebook:
-----------------------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : jupyter-notebook
Version        : 6.4.6-1.1
Arch           : noarch
Vendor         : openSUSE
Installed Size : 103.1 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : python-notebook-6.4.6-1.1.src
Summary        : Jupyter Notebook interface
Description    : 
    The Jupyter HTML notebook is a web-based notebook environment for
    interactive computing.

    This package provides the jupyter components.

$> 



$> sudo zypper info python38-Send2Trash
Loading repository data...
Reading installed packages...


Information for package python38-Send2Trash:
--------------------------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : python38-Send2Trash
Version        : 1.5.0-1.10
Arch           : noarch
Vendor         : openSUSE
Installed Size : 42.7 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : python-Send2Trash-1.5.0-1.10.src
Summary        : Python library to send files to the Trash location
Description    : 
    Send2Trash is a small package that sends files to the Trash (or
    Recycle Bin) natively and on all platforms. On OS X, it uses native
    FSMoveObjectToTrashSync Cocoa calls, on Windows, it uses native (and
    ugly) SHFileOperation win32 calls. On other platforms, if PyGObject
    and GIO are available, it will use this. Otherwise, it will fallback
    to its own implementation of the trash specifications from
    freedesktop.org.

$> 
-------- END
-------------------------------------------------------------------


You are receiving this mail because: