cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
79 stars 26 forks source link

sage-doc-9999 (9.8.beta3) fails to build #724

Closed strogdon closed 1 year ago

strogdon commented 1 year ago

Errors of the type

[tensor_fr] WARNING: error while formatting arguments for sage.tensor.modules.finite_rank_free_module.FiniteRankFreeModule.irange: invalid syntax (<unknown>, line 1)
[tensor_fr] The inventory files are in ../../../build_doc/inventory/en/reference/tensor_free_modules.
Error building the documentation.
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.10/site-packages/sage_docbuild/__main__.py", line 498, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/sage_docbuild/__main__.py", line 495, in main
    builder()
  File "/usr/lib/python3.10/site-packages/sage_docbuild/builders.py", line 819, in _wrapper
    getattr(DocBuilder, build_type)(self, *args, **kwds)
  File "/usr/lib/python3.10/site-packages/sage_docbuild/builders.py", line 163, in f
    runsphinx()
  File "/usr/lib/python3.10/site-packages/sage_docbuild/sphinxbuild.py", line 327, in runsphinx
    sys.stderr.raise_errors()
  File "/usr/lib/python3.10/site-packages/sage_docbuild/sphinxbuild.py", line 263, in raise_errors
    raise OSError(self._error)
OSError: WARNING: error while formatting arguments for sage.tensor.modules.finite_rank_free_module.FiniteRankFreeModule.irange: invalid syntax (<unknown>, line 1)

and also of the type

[polynomia] WARNING: error while formatting arguments for sage.rings.polynomial.toy_buchberger.LCM: The given source does not contain 'def'
[polynomia] WARNING: error while formatting arguments for sage.rings.polynomial.toy_buchberger.LM: The given source does not contain 'def'
[polynomia] WARNING: error while formatting arguments for sage.rings.polynomial.toy_buchberger.LT: The given source does not contain 'def'
[polynomia] The inventory files are in ../../../build_doc/inventory/en/reference/polynomial_rings.
Error building the documentation.
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.10/site-packages/sage_docbuild/__main__.py", line 498, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/sage_docbuild/__main__.py", line 495, in main
    builder()
  File "/usr/lib/python3.10/site-packages/sage_docbuild/builders.py", line 819, in _wrapper
    getattr(DocBuilder, build_type)(self, *args, **kwds)
  File "/usr/lib/python3.10/site-packages/sage_docbuild/builders.py", line 163, in f
    runsphinx()
  File "/usr/lib/python3.10/site-packages/sage_docbuild/sphinxbuild.py", line 327, in runsphinx
    sys.stderr.raise_errors()
  File "/usr/lib/python3.10/site-packages/sage_docbuild/sphinxbuild.py", line 263, in raise_errors
    raise OSError(self._error)
OSError: WARNING: error while formatting arguments for sage.rings.polynomial.toy_buchberger.LCM: The given source does not contain 'def'
kiwifb commented 1 year ago

Is this master or vbraun branch?

strogdon commented 1 year ago

Master. I just sync'd as usual.

kiwifb commented 1 year ago

OK I am seeing in the vbraun branch too. I didn't notice this before.

kiwifb commented 1 year ago

I know. This is the python 3.11 patch. I only tested it with python 3.11 but I can understand how it impacts stuff. python 3.11 enablement is also dependent on rpy getting a python 3.11 ebuild - this is the last hang out.

I will remove python 3.11 from master.

kiwifb commented 1 year ago

pushed.

kiwifb commented 1 year ago

Correction sympy is also not currently py3.11 enabled :( in my tree at least. Should sync.

strogdon commented 1 year ago

Yes, removing the python 3.11 patch fixes building the docs.

kiwifb commented 1 year ago

The python 3.11 patch is a work in progress. sage builds but some stuff doesn't work properly.