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
Traceback (most recent call last):
File "/home/baehyunsol/t.py", line 1, in <module>
from readability import Document
File "/home/baehyunsol/venv/lib/python3.10/site-packages/readability/__init__.py", line 3, in <module>
from .readability import Document
File "/home/baehyunsol/venv/lib/python3.10/site-packages/readability/readability.py", line 11, in <module>
from .cleaners import clean_attributes
File "/home/baehyunsol/venv/lib/python3.10/site-packages/readability/cleaners.py", line 3, in <module>
from lxml.html.clean import Cleaner
File "/home/baehyunsol/venv/lib/python3.10/site-packages/lxml/html/clean.py", line 18, in <module>
raise ImportError(
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.
Environment
OS: Linux 22.04 Ubuntu
Python version: 3.10.12
readability version: 0.8.1 installed via pip
The text was updated successfully, but these errors were encountered:
I cannot import this library on Ubuntu.
How to reproduce
t.py
.t.py
Environment
The text was updated successfully, but these errors were encountered: