sanitizer import error due to changes in html5lib
See original GitHub issueI get the following import error when using djangocms-text-ckeditor with html5lib 0.999999999 installed. Please not that I did not specified any specific version for html5lib and it has been installed by default.
File "....../lib/python3.4/site-packages/djangocms_text_ckeditor/models.py", line 13, in <module>
from .html import clean_html, extract_images
File "...../lib/python3.4/site-packages/djangocms_text_ckeditor/html.py", line 8, in <module>
from html5lib import sanitizer, serializer, treebuilders, treewalkers
ImportError: cannot import name 'sanitizer'
See also release notes for html5lib Released on July 14, 2016: https://pypi.python.org/pypi/html5lib
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
sanitizer import error due to changes in html5lib #336 - GitHub
I get the following import error when using djangocms-text-ckeditor with html5lib 0.999999999 installed. Please not that I did not specified ...
Read more >How to import from html5lib.sanitizer - python - Stack Overflow
I am trying to import module HTMLSanitizerMixin from module html5lib.sanitizer in Python. After searching the web, I see that in the update ...
Read more >Change Log — html5lib 1.2-dev documentation
Deprecate the html5lib sanitizer ( html5lib.serialize(sanitize=True) and ... Try to import from collections.abc to remove DeprecationWarning and ensure ...
Read more >FS#52602 : [python-bleach] Not compatible with python-html5lib ...
Due in Version, Undecided ... Importing the package in Python raises the following error: >>> import bleach ... from html5lib.sanitizer import HTMLSanitizer
Read more >How to use the html5lib.treewalkers function in html5lib - Snyk
try: import html5lib from html5lib import sanitizer, serializer, treewalkers except ImportError: raise Exception("html5lib not available") p = html5lib.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It sure would be good if you guys fixed this. Pinning it to .9x7 deosn’t help when other packages require .9x9
Hello, This issue is tracked in #403, the cms is decoupled from this app so it won’t affect this issue.