Currently doc builds are failing due to (e.g., see #390):
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/napari/utils/notebook_display.py", line 9, in <module>
from lxml.html.clean import Cleaner
File "/opt/hostedtoolcache/Python/3.10.14/x64/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.
Note that from lxml.html.clean import Cleaner is inside a try/except BUT this lxml project separation causes a ImportError whereas the except is for ModuleNotFoundError.
Also lxml is needed for testing AND docs - without it we won't have alt-text? Should we add a napari[docs] requirements to our pyproject.toml? What should be included in 'all'?
Currently doc builds are failing due to (e.g., see #390):
Note that
from lxml.html.clean import Cleaner
is inside a try/except BUT this lxml project separation causes aImportError
whereas theexcept
is forModuleNotFoundError
.Also
lxml
is needed for testing AND docs - without it we won't have alt-text? Should we add anapari[docs]
requirements to ourpyproject.toml
? What should be included in 'all'?(Note: edited)