xhtml2pdf: Now broken with html5lib

From https://pypi.python.org/pypi/html5lib/0.99999999:

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

Except https://github.com/xhtml2pdf/xhtml2pdf/blob/master/xhtml2pdf/parser.py#L17:

from html5lib import treebuilders, inputstream

Current fix:

  • Use `pip install html5lib==1.0b8`
    

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 98
  • Comments: 18 (8 by maintainers)

Commits related to this issue

Most upvoted comments

@benjaoming This post helped me. Sorry, i was just trying to say thank you. Don’t get me wrong.

+1 == + 1 like. That was my thought. haha

Thank you.

Guess what! We have html5lib==1.b10 support! And Python 3 too - #332

@danielquinn - of course it’s on PyPi 😃 Please use the --pre switch for pip as it won’t automatically install beta versions.

You beat me by seven minutes

It appears that this change hasn’t made it into PyPi yet. If I do pip install xhtml2pdf, this is what’s installed:

Successfully installed Pillow-3.4.2 html5lib-0.999999999 pyPdf2-1.26.0 reportlab-3.3.0 six-1.10.0 webencodings-0.5 xhtml2pdf-0.0.6