ImportError with html5lib 0.99999999 (2016-07-14) #332

ivan opened this Issue Jul 15, 2016 · 0 comments


2 participants

ivan commented Jul 15, 2016

html5lib 0.99999999 renamed html5lib.tokenizer:

Move a whole load of stuff (inputstream, ihatexml, trie, tokenizer, utils) to be underscore prefixed to clarify their status as private.

and thus wpull crashes with ImportError on startup:

  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/click/", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/click/", line 696, in main
    rv = self.invoke(ctx)
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/click/", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/click/", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/libgrabsite/", line 368, in main
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/wpull/", line 29, in main
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/wpull/", line 195, in build
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/wpull/", line 692, in _build_html_parser
    from wpull.document.htmlparse.html5lib_ import HTMLParser
  File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/wpull/document/htmlparse/", line 3, in <module>
    import html5lib.tokenizer
ImportError: No module named 'html5lib.tokenizer'

(That's a traceback from wpull 1.2.3, but it looks like wpull 2.0.1 has the same import.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment