question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sanitizer import error due to changes in html5lib

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
rando305commented, Nov 14, 2016

It sure would be good if you guys fixed this. Pinning it to .9x7 deosn’t help when other packages require .9x9

0reactions
czpythoncommented, Jan 30, 2017

Hello, This issue is tracked in #403, the cms is decoupled from this app so it won’t affect this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found