Symengine package fails to build in 10.2rc2

64 views
Skip to first unread message

Marc Culler

unread,
Nov 14, 2023, 12:18:11 PM11/14/23
to sage-devel
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
symengine_py-0.10.0.log

Dima Pasechnik

unread,
Nov 14, 2023, 12:50:55 PM11/14/23
to sage-...@googlegroups.com
On Tue, Nov 14, 2023 at 5:18 PM Marc Culler <marc....@gmail.com> wrote:
>
> The symengine package has apparently not been updated to be compatible with cython 3.

https://github.com/symengine/symengine.py/issues/456
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/4fd16cfa-59fc-4571-b7a8-1ac5caeda95dn%40googlegroups.com.

Marc Culler

unread,
Nov 14, 2023, 4:03:44 PM11/14/23
to sage-devel

I see your unanswered message "ping" on issue #456 from 5 days ago.

But in the Releases section I see that v0.11.0 was released 2 days ago.

- Marc  

Dima Pasechnik

unread,
Nov 14, 2023, 7:09:29 PM11/14/23
to sage-devel
It's not on PyPI yet, as Isuru tells me there.


Reply all
Reply to author
Forward
0 new messages