Open kiwifb opened 2 weeks ago
Did you get this when building or when running a doctest?
I see, sphinx
was upgraded after I had built sage-doc-9999
. It now fails to build.
The same thing kind of happened to me. Build one day and not the next with no obvious reason until I noticed sphinx install date. A sage_autodoc change is needed, I do not know when I will have time to do it.
It appears that the warningiserror
keyword had been removed from sphinx/ext/autodoc/importer.py
(see https://github.com/sphinx-doc/sphinx/commit/fadb6b10cb15d2a8ce336cee307dcb3ff64680bd#diff-7889318d4dc88e0a7b10ab819483443dd071d1357fe8a91891c19736cd820723). Not sure what it needs to be replaced with if anything. I was able to build the docs by removing the warningiserror=self.config.autodoc_warningiserror
argument from the calls to import_object( ... )
in sage_autodoc.py
, as for example
ret = import_object(self.modname, self.objpath, self.objtype,
attrgetter=self.get_attr)
# attrgetter=self.get_attr,
# warningiserror=self.config.autodoc_warningiserror)
sage_autodoc.py
is based on sphinx/ext/autodoc/__init__.py
and there is only one reference left to warningiserror
in that file in sphinx 8.1.x.
Pushed https://github.com/sagemath/sage/pull/38957 upstream seems to work in sage-on-gentoo. I will make it more widely available tomorrow.
OK I have pushed the patch to master for both 9999 and 10.4 now. Allow 15mn for synchronisation before trying it out.
I should mention that you need to re-install sage_docbuild before trying to install sage-doc with sphinx-8.1.3.
This works here.
Looks like a new update to sage_autodoc will be required. In the meantime, stay on sphinx-8.0.x.