When I updated my packages I have this new error:
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: \'module\' object ha
The same problem occurred on me. I don't know what you were trying to do, but it occurred on me when I tried to read XML file in pandas, using pd.read_html().
The problem is fixed by upgrading all of beautifulsoup4, html5lib, and lxml, like:
pip install bs4
pip install html5lib
pip install lxml
And restart your Python environment and now it is working.