When I updated my packages I have this new error:
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder): AttributeError: \'module\' object ha
I found trying to switch versions did not work for me. In the end, based on this issue I edited the relevant file at ~/.local/lib/python3.7/site-packages/bs4/builder/_html5lib.py for my purposes.
~/.local/lib/python3.7/site-packages/bs4/builder/_html5lib.py