Fails to start due to bs4/html5lib incompatibilities

Bug #1645572 reported by Joshua Orvis
This bug report is a duplicate of:  Bug #1603299: Crash with latest html5lib. Edit Remove
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Variety
Confirmed
Undecided
Unassigned

Bug Description

I've tried installing variety via apt-get (Ubuntu 16.04, Unity) and by grabbing with bzr, but in either case when I run it I get this:

$ ./variety
/tmp/variety/variety/__init__.py:108: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk, GObject # pylint: disable=E0611
Traceback (most recent call last):
  File "./variety", line 38, in <module>
    import variety
  File "/tmp/variety/variety/__init__.py", line 110, in <module>
    from variety import VarietyWindow
  File "/tmp/variety/variety/VarietyWindow.py", line 24, in <module>
    from variety.FacebookHelper import FacebookHelper
  File "/tmp/variety/variety/FacebookHelper.py", line 55, in <module>
    from variety.Util import Util
  File "/tmp/variety/variety/Util.py", line 16, in <module>
    import bs4
  File "/usr/lib/python2.7/dist-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/usr/lib/python2.7/dist-packages/bs4/builder/__init__.py", line 314, in <module>
    from . import _html5lib
  File "/usr/lib/python2.7/dist-packages/bs4/builder/_html5lib.py", line 70, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'

This is the same thing I get when I run 'variety -v'

Revision history for this message
James Lu (jlu5) wrote : Re: Fails to start do to bs4/html5lib incompatibilities
summary: - PyGIWarning: Gtk was imported without specifying a version first
+ Fails to start do to bs4/html5lib incompatibilities
summary: - Fails to start do to bs4/html5lib incompatibilities
+ Fails to start due to bs4/html5lib incompatibilities
Revision history for this message
Raony Guimarães (raonyguimaraes) wrote :

This bug also got me ...

You can solve with a simple:

 sudo pip install --upgrade html5lib==1.0b8

Please fix the tool, this is very simple!

Revision history for this message
Raony Guimarães (raonyguimaraes) wrote :

This bug also got me just recently on 16.04 ...

You can solve with a simple:

 sudo pip install --upgrade html5lib==1.0b8

Please fix the tool, this is very simple!

Revision history for this message
James Lu (jlu5) wrote :

This isn't a variety bug, it's a bs4 bug. Installing a different html5lib is a workaround but mixing debs and pip installs is ugly...

Changed in variety:
status: New → Opinion
James Lu (jlu5)
Changed in variety:
status: Opinion → Confirmed
Revision history for this message
Joshua Powers (powersj) wrote :

Agreed this is not an issue with variety, so marking this as a duplicate of the existing bs4 bug here LP: #1603299.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.