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
- force html5lib version to fix https://github.com/xhtml2pdf/xhtml2pdf/issues/318 — committed to OpenBfS/dokpool-plone by k-probst 8 years ago
 - Update html5 version in setup.py also Reflects requirements.txt change in 8eaf2f2b009c62258dea30aae37bd5966be6dba1 Ref #321 Fix #318 — committed to JocelynDelalande/xhtml2pdf by JocelynDelalande 8 years ago
 - Error de importacion en htmlibs nuevos https://github.com/xhtml2pdf/xhtml2pdf/issues/318 — committed to Etxea/MatriculaEIDE by deleted user 7 years ago
 - broken dependency https://github.com/xhtml2pdf/xhtml2pdf/issues/318 — committed to tue-robotics/tue-env by MatthijsBurgh 7 years ago
 - broken dependency https://github.com/xhtml2pdf/xhtml2pdf/issues/318 — committed to tue-robotics/tue-env by MatthijsBurgh 7 years ago
 - broken dependency https://github.com/xhtml2pdf/xhtml2pdf/issues/318 — committed to tue-robotics/tue-env-targets by MatthijsBurgh 7 years ago
 
@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
--preswitch forpipas it won’t automatically install beta versions.@alexandre Done. See #319
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: