On Ubuntu 22.04 (Python 3.10.12), I also failed to build the documentation after upgrading form 10.2.beta0 to 10.2.beta1, even after running
make doc-clean doc-uninstall
The error message is
[sagemath_doc_html-none] Error building the documentation.
[sagemath_doc_html-none] Traceback (most recent call last):
[sagemath_doc_html-none] File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
[sagemath_doc_html-none] return _run_code(code, main_globals, None,
[sagemath_doc_html-none] File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
[sagemath_doc_html-none] exec(code, run_globals)
[sagemath_doc_html-none] File "/home/eric/sage/10.2/pkgs/sage-docbuild/sage_docbuild/__main__.py", line 502, in <module>
[sagemath_doc_html-none] sys.exit(main())
[sagemath_doc_html-none] File "/home/eric/sage/10.2/pkgs/sage-docbuild/sage_docbuild/__main__.py", line 499, in main
[sagemath_doc_html-none] builder()
[sagemath_doc_html-none] File "/home/eric/sage/10.2/pkgs/sage-docbuild/sage_docbuild/builders.py", line 818, in _wrapper
[sagemath_doc_html-none] getattr(DocBuilder, build_type)(self, *args, **kwds)
[sagemath_doc_html-none] File "/home/eric/sage/10.2/pkgs/sage-docbuild/sage_docbuild/builders.py", line 162, in f
[sagemath_doc_html-none] runsphinx()
[sagemath_doc_html-none] File "/home/eric/sage/10.2/pkgs/sage-docbuild/sage_docbuild/sphinxbuild.py", line 327, in runsphinx
[sagemath_doc_html-none] sys.stderr.raise_errors()
[sagemath_doc_html-none] File "/home/eric/sage/10.2/pkgs/sage-docbuild/sage_docbuild/sphinxbuild.py", line 263, in raise_errors
[sagemath_doc_html-none] raise OSError(self._error)
[sagemath_doc_html-none] OSError: WARNING: autodoc: failed to import module 'multi_polynomial_libsingular' from module 'sage.rings.polynomial'; the following exception was raised:
[sagemath_doc_html-none]
[sagemath_doc_html-none] Note: incremental documentation builds sometimes cause spurious
[sagemath_doc_html-none] error messages. To be certain that these are real errors, run
[sagemath_doc_html-none] "make doc-clean doc-uninstall" first and try again.
Eric.