I have successfully build sagemath 10.1 on a Fedora 38 computer but now, when a I try to
build sagemath 10.2 in the same computer, I have a lot of errors in Cythonizing files
The first one is:
[ 19/557] Cythonizing sage/arith/rational_reconstruction.pyx
Error compiling Cython file:
------------------------------------------------------------
...
"""
Return ``t.__new__(t)``. This works even for types like
:class:`Integer` where we change ``tp_new`` at runtime (Cython
optimizations assume that ``tp_new`` doesn't change).
"""
return (<PyTypeObject*>t).tp_new(t, <PyObject*>NULL, <PyObject*>NULL)
^
------------------------------------------------------------
sage/ext/stdsage.pxd:22:40: Cannot convert 'PyObject *' to Python object
Error compiling Cython file:
------------------------------------------------------------
...
"""
Return ``t.__new__(t)``. This works even for types like
:class:`Integer` where we change ``tp_new`` at runtime (Cython
optimizations assume that ``tp_new`` doesn't change).
"""
return (<PyTypeObject*>t).tp_new(t, <PyObject*>NULL, <PyObject*>NULL)
^
------------------------------------------------------------
but I seems that there are no differences between the files
sage/arith/rational_reconstruction.pyxin sage-10.1 and sage-10.2.
Another error is in
The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/rpmbuild/BUILD/sage-10.2/src/./setup.py", line 118, in <module> extensions = cythonize( ^^^^^^^^^^ File "/usr/lib64/python3.11/site-packages/Cython/Build/Dependencies.py", line 1103, in cythonize result.get(99999) # seconds ^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/multiprocessing/pool.py", line 774, in get raise self._value Cython.Compiler.Errors.CompileError: sage/arith/multi_modular.pyx ************************************************************************ Error building the Sage library ************************************************************************and the differences between the the files
sage/arith/multi_modular.pyxin sage-10.1 and sage-10.2 are
diff sage-10.1/src/sage/arith/multi_modular.pyx sage-10.2/src/sage/arith/multi_modular.pyx 104c104 < cdef _realloc_to_new_count(self, new_count): --- > cdef _realloc_to_new_count(self, new_count) noexcept: 189c189 < or raise a ``RuntimeError`` if there are no more primes. --- > or raise a :class:`RuntimeError` if there are no more primes. 448c448 < cdef void _refresh_products(self, int start): --- > cdef void _refresh_products(self, int start) noexcept: 463c463 < cdef void _refresh_prod(self): --- > cdef void _refresh_prod(self) noexcept: 495c495 < cdef mod_int last_prime(self): --- > cdef mod_int last_prime(self) noexcept:
The version of python installed is 3.1.6.
Anybody knows why have I these errors?
Regards,
Rafel Amer
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/9d117bce-ba8a-42fc-a4c2-bf3eae327084%40upc.edu.