Bug 1474883 - Cannot import html5lib: ImportError: No module named webencodings
Summary: Cannot import html5lib: ImportError: No module named webencodings
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-html5lib
Version: rawhide
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Praveen Kumar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1474930
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-25 14:44 UTC by Randy Barlow
Modified: 2017-07-27 21:58 UTC (History)
5 users (show)

Fixed In Version: python-html5lib-0.999999999-3.fc27
Clone Of:
Environment:
Last Closed: 2017-07-27 21:58:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Randy Barlow 2017-07-25 14:44:56 UTC
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):
python2-html5lib-0.999999999-1.fc27.noarch


How reproducible:
Every time.


Steps to Reproduce:
1. $ python
2. >>> import html5lib


Actual results:
$ python                                                      
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>                               
    import webencodings      
ImportError: No module named webencodings


Expected results:
It should be possible to import html5lib.


Additional info:
Bodhi uses bleach, which needs html5lib, so this is blocking Bodhi from building on Rawhide.

Comment 1 Randy Barlow 2017-07-25 14:56:36 UTC
It looks like this happened in the recent update from 0.999 to 0.999999999. 0.999 did not depend on webencodings:

https://github.com/html5lib/html5lib-python/blob/0.999/requirements.txt

But the new version does:

https://github.com/html5lib/html5lib-python/blob/0.999999999/requirements.txt

Comment 2 Randy Barlow 2017-07-25 15:00:00 UTC
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.

Comment 3 Kevin Fenzi 2017-07-25 15:10:45 UTC
This is my fault. I thought it was only using that for tests. ;(

Comment 4 Randy Barlow 2017-07-25 17:01:45 UTC
python-webencodings-0.5.1-1.fc27 is now built on Rawhide, so this ticket can now be fixed. Thanks!

Comment 5 Randy Barlow 2017-07-27 21:58:56 UTC
Thanks for fixing this for me Kevin!


Note You need to log in before you can comment on or make changes to this bug.