Red Hat Bugzilla – Bug 1474883
Cannot import html5lib: ImportError: No module named webencodings
Last modified: 2017-07-27 17:58:56 EDT
Description of problem:
I cannot import html5lib on my Rawhide system due to webencodings not being available.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. $ python
2. >>> import html5lib
Python 2.7.13 (default, Jun 26 2017, 10:16:32)
[GCC 7.1.1 20170526 (Red Hat 7.1.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import html5lib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
from .html5parser import HTMLParser, parse, parseFragment
File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 11, in <module>
from . import _inputstream
File "/usr/lib/python2.7/site-packages/html5lib/_inputstream.py", line 9, in <module>
ImportError: No module named webencodings
It should be possible to import html5lib.
Bodhi uses bleach, which needs html5lib, so this is blocking Bodhi from building on Rawhide.
It looks like this happened in the recent update from 0.999 to 0.999999999. 0.999 did not depend on webencodings:
But the new version does:
webencodings does not appear to be packaged for Fedora yet. I will take some time today to package it, and once we get it approved and in Rawhide we can update this package to Require it.
This is my fault. I thought it was only using that for tests. ;(
python-webencodings-0.5.1-1.fc27 is now built on Rawhide, so this ticket can now be fixed. Thanks!
Thanks for fixing this for me Kevin!