Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660858 - dev-python/html5lib-1.0.1 broke dev-python/notebook (jupyter notebook)
Summary: dev-python/html5lib-1.0.1 broke dev-python/notebook (jupyter notebook)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-10 17:06 UTC by David Flogeras
Modified: 2019-07-30 08:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Flogeras 2018-07-10 17:06:48 UTC
Since upgrading, when I attempt to start notebook with:

jupyter notebook /path/to/my/notebooks/

I get the following:

Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 666, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 984, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 875, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (html5lib 1.0.1 (/usr/lib64/python3.5/site-packages), Requirement.parse('html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999'), {'bleach'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/jupyter-notebook", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 3161, in <module>
    @_call_aside
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 3145, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 3174, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 668, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 681, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 870, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999' distribution was not found and is required by bleach


Reproducible: Always
Comment 1 Jan C Peters 2018-07-24 15:19:12 UTC
Have the exact same error.

The error seems to originate in bleach's version requirements on html5lib. Indeed, unmasking bleach (upgrading it from 1.5.0 to 2.1.3) resolved the problem. Jupyter starts normally again. So stabilizing =dev-python/bleach-2.1.3 should fix this, as far as I can tell.

Note that I have unmasked a lot of jupyter-related packages.
Comment 2 Marius Brehler 2019-07-30 08:27:40 UTC
With bleach 2.1.3 and 3.0.2 stabilized, this issue should be fixed.