Corrigindo besteiras no python3/dist-packages

Se por acaso você se deparar com o erro abaixo no arquivo /usr/lib/python3/dist-packages/setuptools/py33compat.py:

unescape = getattr(html, ‘unescape’, html_parser.HTMLParser().unescape)
AttributeError: ‘HTMLParser’ object has no attribute ‘unescape’

É pq a porcaria do HMLParser foi deprecated, pra corrigir, altere assim:

#unescape = getattr(html, ‘unescape’, html_parser.HTMLParser().unescape)
unescape = getattr(html, html.unescape(‘unescape’))

Leave a Reply

Your email address will not be published. Required fields are marked *