I tried to build Sage with Python3 via make configure ./configure --with-python=3 make build
(fresh clone of 8.5.beta1) as announced on https://wiki.sagemath.org/Python3-compatible%20code but it failed building its docs. From what I read, building the docs does still not work (part of the log below). My question is, how to compile it "correctly"? FYI, I do not recall what I did about two month ago (probably the same), but it was "easy" to compile without any errors. Best wishes Daniel [sagenb-1.1.0] reading sources... [ 73%] notebook/notebook [sagenb-1.1.0] WARNING: autodoc: failed to import module 'sagenb.misc.introspect'; the following exception was raised: [sagenb-1.1.0] Traceback (most recent call last): [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sphinx/ext/autodoc/importer.py", line 152, in import_module [sagenb-1.1.0] __import__(modname) [sagenb-1.1.0] File "../sagenb/__init__.py", line 3, in <module> [sagenb-1.1.0] from . import storage [sagenb-1.1.0] File "../sagenb/storage/__init__.py", line 3, in <module> [sagenb-1.1.0] from .filesystem_storage import FilesystemDatastore [sagenb-1.1.0] File "../sagenb/storage/filesystem_storage.py", line 52, in <module> [sagenb-1.1.0] from sagenb.misc.misc import set_restrictive_permissions, encoded_str [sagenb-1.1.0] File "../sagenb/misc/misc.py", line 216, in <module> [sagenb-1.1.0] import sage.all [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/all.py", line 83, in <module> [sagenb-1.1.0] from sage.misc.all import * # takes a while [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/misc/all.py", line 84, in <module> [sagenb-1.1.0] from .functional import (additive_order, [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/misc/functional.py", line 27, in <module> [sagenb-1.1.0] from sage.rings.complex_double import CDF [sagenb-1.1.0] File "sage/rings/complex_double.pyx", line 101, in init sage.rings.complex_double (build/cythonized/sage/rings/complex_double.c:24114) [sagenb-1.1.0] cdef CC = ComplexField() [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/complex_field.py", line 114, in ComplexField [sagenb-1.1.0] C = ComplexField_class(prec) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/complex_field.py", line 208, in __init__ [sagenb-1.1.0] self._populate_coercion_lists_(coerce_list=[RRtoCC(self._real_field(), self)]) [sagenb-1.1.0] File "sage/rings/complex_number.pyx", line 2580, in sage.rings.complex_number.RRtoCC.__init__ (build/cythonized/sage/rings/complex_number.c:21896) [sagenb-1.1.0] Map.__init__(self, RR, CC) [sagenb-1.1.0] File "sage/categories/map.pyx", line 125, in sage.categories.map.Map.__init__ (build/cythonized/sage/categories/map.c:3588) [sagenb-1.1.0] parent = homset.Hom(parent, codomain) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/categories/homset.py", line 397, in Hom [sagenb-1.1.0] H = Hom(X, Y, category, check=False) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/categories/homset.py", line 424, in Hom [sagenb-1.1.0] H = X._Hom_(Y, category) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/categories/rings.py", line 361, in _Hom_ [sagenb-1.1.0] from sage.rings.homset import RingHomset [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/homset.py", line 19, in <module> [sagenb-1.1.0] from . import quotient_ring [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/quotient_ring.py", line 116, in <module> [sagenb-1.1.0] import sage.rings.polynomial.multi_polynomial_ideal [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/polynomial/multi_polynomial_ideal.py", line 239, in <module> [sagenb-1.1.0] from sage.interfaces.all import (singular as singular_default, [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/all.py", line 24, in <module> [sagenb-1.1.0] from .maxima import maxima, Maxima [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/maxima.py", line 1238, in <module> [sagenb-1.1.0] script_subdirectory=None) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/maxima.py", line 529, in __init__ [sagenb-1.1.0] raise RuntimeError('You must get the file local/bin/sage-maxima.lisp') [sagenb-1.1.0] RuntimeError: You must get the file local/bin/sage-maxima.lisp [sagenb-1.1.0] [sagenb-1.1.0] WARNING: autodoc: failed to import module 'sagenb.misc.misc'; the following exception was raised: [sagenb-1.1.0] Traceback (most recent call last): [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sphinx/ext/autodoc/importer.py", line 152, in import_module [sagenb-1.1.0] __import__(modname) [sagenb-1.1.0] File "../sagenb/misc/misc.py", line 352, in <module> [sagenb-1.1.0] from sage.plot.colors import Color [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/plot/__init__.py", line 2, in <module> [sagenb-1.1.0] from . import all [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/plot/all.py", line 3, in <module> [sagenb-1.1.0] from .plot import plot, graphics_array, list_plot, parametric_plot, polar_plot [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/plot/plot.py", line 577, in <module> [sagenb-1.1.0] from sage.ext.fast_eval import fast_float, is_fast_float [sagenb-1.1.0] File "sage/ext/fast_eval.pyx", line 93, in init sage.ext.fast_eval (build/cythonized/sage/ext/fast_eval.c:14529) [sagenb-1.1.0] from sage.ext.fast_callable import fast_callable, Wrapper [sagenb-1.1.0] File "sage/ext/fast_callable.pyx", line 308, in init sage.ext.fast_callable (build/cythonized/sage/ext/fast_callable.c:20784) [sagenb-1.1.0] from sage.rings.all import RDF, CDF [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/all.py", line 31, in <module> [sagenb-1.1.0] from .quotient_ring import QuotientRing [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/quotient_ring.py", line 116, in <module> [sagenb-1.1.0] import sage.rings.polynomial.multi_polynomial_ideal [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/polynomial/multi_polynomial_ideal.py", line 239, in <module> [sagenb-1.1.0] from sage.interfaces.all import (singular as singular_default, [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/all.py", line 24, in <module> [sagenb-1.1.0] from .maxima import maxima, Maxima [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/maxima.py", line 1238, in <module> [sagenb-1.1.0] script_subdirectory=None) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/maxima.py", line 529, in __init__ [sagenb-1.1.0] raise RuntimeError('You must get the file local/bin/sage-maxima.lisp') [sagenb-1.1.0] RuntimeError: You must get the file local/bin/sage-maxima.lisp [sagenb-1.1.0] [sagenb-1.1.0] WARNING: autodoc: failed to import module 'sagenb.misc.support'; the following exception was raised: [sagenb-1.1.0] Traceback (most recent call last): [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sphinx/ext/autodoc/importer.py", line 152, in import_module [sagenb-1.1.0] __import__(modname) [sagenb-1.1.0] File "../sagenb/misc/support.py", line 525, in <module> [sagenb-1.1.0] from sage.symbolic.all import Expression, SR [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/symbolic/all.py", line 3, in <module> [sagenb-1.1.0] from sage.libs.pynac.pynac import I [sagenb-1.1.0] File "sage/symbolic/expression.pxd", line 4, in init sage.libs.pynac.pynac (build/cythonized/sage/libs/pynac/pynac.cpp:31961) [sagenb-1.1.0] cdef class Expression(CommutativeRingElement): [sagenb-1.1.0] File "sage/symbolic/expression.pyx", line 161, in init sage.symbolic.expression (build/cythonized/sage/symbolic/expression.cpp:80723) [sagenb-1.1.0] from . import ring [sagenb-1.1.0] File "sage/symbolic/ring.pyx", line 32, in init sage.symbolic.ring (build/cythonized/sage/symbolic/ring.cpp:16924) [sagenb-1.1.0] from sage.rings.all import RR, CC, ZZ [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/all.py", line 31, in <module> [sagenb-1.1.0] from .quotient_ring import QuotientRing [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/quotient_ring.py", line 116, in <module> [sagenb-1.1.0] import sage.rings.polynomial.multi_polynomial_ideal [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/rings/polynomial/multi_polynomial_ideal.py", line 239, in <module> [sagenb-1.1.0] from sage.interfaces.all import (singular as singular_default, [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/all.py", line 24, in <module> [sagenb-1.1.0] from .maxima import maxima, Maxima [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/maxima.py", line 1238, in <module> [sagenb-1.1.0] script_subdirectory=None) [sagenb-1.1.0] File "/opt/sage/8.5.beta1-python3/local/lib/python3.6/site-packages/sage/interfaces/maxima.py", line 529, in __init__ [sagenb-1.1.0] raise RuntimeError('You must get the file local/bin/sage-maxima.lisp') [sagenb-1.1.0] RuntimeError: You must get the file local/bin/sage-maxima.lisp [sagenb-1.1.0] [sagenb-1.1.0] [sagenb-1.1.0] Exception occurred: [sagenb-1.1.0] File "sage/misc/lazy_import.pyx", line 218, in sage.misc.lazy_import.LazyImport._get_object (build/cythonized/sage/misc/lazy_import.c:2412) [sagenb-1.1.0] raise RuntimeError(f"resolving lazy import {self._name} during startup") [sagenb-1.1.0] RuntimeError: resolving lazy import load during startup [sagenb-1.1.0] The full traceback has been saved in /tmp/sphinx-err-bksvvpaz.log, if you want to report the issue to the developers. [sagenb-1.1.0] Please also report this if it was a user error, so that a better error message can be provided next time. [sagenb-1.1.0] A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks! [sagenb-1.1.0] Makefile:20: recipe for target 'html' failed [sagenb-1.1.0] make[4]: *** [html] Error 2 [sagenb-1.1.0] make[4]: Leaving directory '/opt/sage/8.5.beta1-python3/local/var/tmp/sage/build/sagenb-1.1.0/src/doc' [sagenb-1.1.0] ******************************************************************************** [sagenb-1.1.0] Error building the documentation [sagenb-1.1.0] ******************************************************************************** [sagenb-1.1.0] [sagenb-1.1.0] real 0m9.205s [sagenb-1.1.0] user 0m8.490s [sagenb-1.1.0] sys 0m0.923s [sagenb-1.1.0] ************************************************************************ [sagenb-1.1.0] Error installing package sagenb-1.1.0 [sagenb-1.1.0] ************************************************************************ -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.