From 76dc50ee40440f48356b9e206aa4e759ec952912 Mon Sep 17 00:00:00 2001 From: Oz Kilic Date: Sun, 19 May 2024 21:27:24 -0400 Subject: [PATCH] Add lxml to doc requirements Local documentation files were fine, but Read the Docs gives the following error: Traceback (most recent call last): File "/home/docs/checkouts/readthedocs.org/user_builds/catfish-sim/envs/latest/lib/python3.10/site-packages/sphinx/cmd/build.py", line 332, in build_main app = Sphinx(args.sourcedir, args.confdir, args.outputdir, File "/home/docs/checkouts/readthedocs.org/user_builds/catfish-sim/envs/latest/lib/python3.10/site-packages/sphinx/application.py", line 229, in __init__ self.setup_extension(extension) File "/home/docs/checkouts/readthedocs.org/user_builds/catfish-sim/envs/latest/lib/python3.10/site-packages/sphinx/application.py", line 402, in setup_extension self.registry.load_extension(self, extname) File "/home/docs/checkouts/readthedocs.org/user_builds/catfish-sim/envs/latest/lib/python3.10/site-packages/sphinx/registry.py", line 456, in load_extension raise ExtensionError(__('Could not import extension %s') % extname, sphinx.errors.ExtensionError: Could not import extension nbsphinx (exception: lxml.html.clean module is now a separate project lxml_html_clean. Install lxml[html_clean] or lxml_html_clean directly.) Extension error: Could not import extension nbsphinx (exception: lxml.html.clean module is now a separate project lxml_html_clean. Install lxml[html_clean] or lxml_html_clean directly.) --- docs/requirements-doc.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/requirements-doc.txt b/docs/requirements-doc.txt index 1869372..1b40989 100644 --- a/docs/requirements-doc.txt +++ b/docs/requirements-doc.txt @@ -4,4 +4,5 @@ sphinx-rtd-theme nbsphinx==0.9.4 nbconvert==7.0.0 ipython==8.23.0 -Pygments==2.17.2 \ No newline at end of file +Pygments==2.17.2 +lxml==4.9.1 \ No newline at end of file