You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes made on v2.4.0 do not fix the original issue (#38). When installing html_sanitizer as a dependency (using pip) we still have the same ImportError :
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.
During pip install, we receive this warning:
Collecting lxml[html-clean]>=5.2.0 (from html_sanitizer>=2.4.0->-r .\req-htmls.txt (line 1))
Obtaining dependency information for lxml[html-clean]>=5.2.0 from https://files.pythonhosted.org/packages/a7/64/eedb4435eb693812b9b517c6ce0beac932c1e45c4031df33688484fd83ea/lxml-5.2.0-cp311-cp311-win_amd64.whl.metadata
Using cached lxml-5.2.0-cp311-cp311-win_amd64.whl.metadata (4.0 kB)
WARNING: lxml 5.2.0 does not provide the extra 'html-clean'
There seems to be a ongoing issue with pip (pypa/pip#11445) not properly resolving extras when they contain underscores.
The text was updated successfully, but these errors were encountered:
waldeck-dev
added a commit
to waldeck-dev/html-sanitizer
that referenced
this issue
Apr 1, 2024
Fixesmatthiask#40
This PR drops dependency `lxml[html_clean]` since the extra is not resolved properly by `pip`.
Instead, we use both `lxml` (5.2.0) and `lxml-html-clean` (0.1.0).
Signed-off-by: Valentin <valentin@waldeck.dev>
Fixes#40
This PR drops dependency `lxml[html_clean]` since the extra is not resolved properly by `pip`.
Instead, we use both `lxml` (5.2.0) and `lxml-html-clean` (0.1.0).
Signed-off-by: Valentin <valentin@waldeck.dev>
Hello,
The changes made on v2.4.0 do not fix the original issue (#38). When installing
html_sanitizer
as a dependency (usingpip
) we still have the same ImportError :During
pip install
, we receive this warning:There seems to be a ongoing issue with
pip
(pypa/pip#11445) not properly resolving extras when they contain underscores.The text was updated successfully, but these errors were encountered: