-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot import name 'sanitizer' #277
Comments
@erikzenker It looks like it has been removed (or moved). Quickfix is to use a slightly older version of the package where sanitizer is still there:
ot: what is it with those weird version numbers anyway? You know you could also make it 0.10 . |
That's #72 and #110. The sanitizer now exists only as a filter for the treewalkers, rather than something touching the tokenizer in odd ways that was likely broken. Our state of terrible documentation probably doesn't help here, and the changelog entry is rather useless in hindsight. The common-case is something like:
(0.10 is less than 0.9999999, so no, that option's long gone.) |
You could make it 1.0 though. Counting the 9s makes me dizzy. |
This is still not working.... Are there any real solutions to this? |
As a2917e9, from html5lib.filters import sanitizer |
I want install the django cms which uses the sanitizer of the html5lib,
but I get the error shown above in the title.
when I just import the sanitizer from html5lib:
I get the following error:
I installed html5lib from pip:
Is the sanitizer module not available anymore ?
The text was updated successfully, but these errors were encountered: