Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662144 - dev-python/bleach-1.5.0 test failure with html5lib
Summary: dev-python/bleach-1.5.0 test failure with html5lib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on: 663438
Blocks:
  Show dependency tree
 
Reported: 2018-07-25 23:52 UTC by Alexey
Modified: 2019-01-17 16:25 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,12.96 KB, text/x-log)
2018-07-25 23:52 UTC, Alexey
Details
emerge --info (file_662144.txt,19.16 KB, text/plain)
2018-07-25 23:54 UTC, Alexey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2018-07-25 23:52:57 UTC
Created attachment 541076 [details]
build.log

ImportError: No module named 'html5lib.sanitizer'

According to https://github.com/mozilla/bleach/issues/229 this is fixed in bleach 2.0.0.

I tested 2.1.1 and 2.1.3 from portage, and it's fixed in 2.1.3, but not in 2.1.1.
2.1.1 shows this error instead:

    from html5lib.constants import (
E   ImportError: cannot import name 'ReparseException'
Comment 1 Alexey 2018-07-25 23:54:33 UTC
Created attachment 541078 [details]
emerge --info
Comment 2 Mart Raudsepp gentoo-dev 2018-08-06 09:44:26 UTC
This seems to break the ability to (re)install pbr as a whole too, completely breaking stable machine migration from python3.5 to python3.6 (with FEATURES=test involved).

>>> Compiling source in /tmp/portage/dev-python/pbr-3.1.1/work/pbr-3.1.1 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
python2.7 setup.py build
 * Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p 
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    **util.cfg_to_args())
  File "/tmp/portage/dev-python/pbr-3.1.1/work/pbr-3.1.1/pbr/util.py", line 267, in cfg_to_args
    wrap_commands(kwargs)
  File "/tmp/portage/dev-python/pbr-3.1.1/work/pbr-3.1.1/pbr/util.py", line 569, in wrap_commands
    cmdclass = ep.resolve()
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2428, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib64/python2.7/site-packages/readme/integration/distutils.py", line 20, in <module>
    from readme.rst import render
  File "/usr/lib64/python2.7/site-packages/readme/rst.py", line 23, in <module>
    from .clean import clean
  File "/usr/lib64/python2.7/site-packages/readme/clean.py", line 16, in <module>
    import bleach
  File "/usr/lib64/python2.7/site-packages/bleach/__init__.py", line 14, in <module>
    from html5lib.sanitizer import HTMLSanitizer
ImportError: No module named sanitizer
 * ERROR: dev-python/pbr-3.1.1::gentoo failed (compile phase):
 *   (no error message)


I don't understand (and haven't investigated much) what magic makes readme/bleach/html5lib get involved here for pbr, but as soon as I stable keyword newer bleach and upgrade it, pbr can finally get rebuilt with python-3.6 support.
Please fix the incompatibility in stable tree, probably by requesting newer bleach stable. I am likely to mark newer bleach stable on arm64 without maintainer request, as I don't like having things broken.
Comment 3 Mart Raudsepp gentoo-dev 2018-08-12 08:39:13 UTC
ping re html5lib-1.x compatible bleach stabilization
Comment 4 Virgil Dupras (RETIRED) gentoo-dev 2019-01-17 16:25:46 UTC
2.1.3 is stable on all arches and older versions are cleaned. closing.