jmcarp / robobrowser

BSD 3-Clause "New" or "Revised" License
3.7k stars 337 forks source link

Import Error: HTMLParser #80

Closed vorticalbox closed 7 years ago

vorticalbox commented 7 years ago

When importing robobrowser, from robobrowser import RoboBrowser on windows 10 I am getting

ImportError: cannot import name 'HTMLParseError'

full error

Traceback (most recent call last): File "", line 1, in File "C:\Users\vorti\AppData\Local\Programs\Python\Python36-32\lib\site-packages\robobrowser__init.py", line 3, in from .browser import RoboBrowser File "C:\Users\vorti\AppData\Local\Programs\Python\Python36-32\lib\site-packages\robobrowser\browser.py", line 7, in from bs4 import BeautifulSoup File "C:\Users\vorti\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bs4__init__.py", line 30, in from .builder import builder_registry, ParserRejectedMarkup File "C:\Users\vorti\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bs4\builder\init__.py", line 308, in from . import _htmlparser File "C:\Users\vorti\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bs4\builder_htmlparser.py", line 7, in from html.parser import ( ImportError: cannot import name 'HTMLParseError'

vorticalbox commented 7 years ago

Turns out BS$ was broken on my windows so not an issue