The symengine package has apparently not been updated to be compatible with cython 3.
This is what I see in the log (full log attached):
performance hint: /private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/symengine_py-0.10.0/src/symengine/lib/symengine_wrapper.pyx:4992:5: Exception check on '_ctypes_callback_lambda_real' will always require the GIL to be acquired.
Possible solutions:
1. Declare the function as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
2. Use an 'int' return type on the function to allow an error code to be returned.
Error compiling Cython file:
------------------------------------------------------------
...
cdef Basic X = sympify((<object>o1).diff(c2py(symbol)._sympy_()))
return X.thisptr
def create_sympy_module():
cdef PyModule s = PyModule.__new__(PyModule)
s.thisptr = symengine.make_rcp_PyModule(&symengine_to_sympy, &pynumber_to_symengine, &sympy_eval,
^
------------------------------------------------------------
/private/var/tmp/sage-10.2-current/local/var/lib/sage/venv-python3.11.1/var/tmp/sage/build/symengine_py-0.10.0/src/symengine/lib/symengine_wrapper.pyx:2805:44: Cannot assign type 'PyObject *(*)(rcp_const_basic) except? NULL' to 'PyObject *(*)(rcp_const_basic) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to type 'PyObject *(rcp_const_basic) except? NULL'.
make[7]: *** [symengine/lib/symengine_wrapper.cpp] Error 1
make[6]: *** [symengine/lib/CMakeFiles/symengine_wrapper.dir/all] Error 2
make[5]: *** [all] Error 2
error: error building project
error: subprocess-exited-with-error