Please enable JS

Blog

AttributeError: 'module' object has no attribute '_base'

Published on May 25, 2017, 1:44 a.m.

When I install sitemap-generator i got exception due to out dated packages.

Traceback

File "/local/lib/python2.7/site-packages/bs4/builder/_html5lib.py", line 70, in <module>

    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):

AttributeError: 'module' object has no attribute '_base'

Fix: We just need to upgrade the packages

pip install --upgrade beautifulsoup4
pip install --upgrade html5lib