On Mon, Aug 7, 2023 at 5:02 PM Sérgio Basto <ser...@serjux.com> wrote:
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
> def set_depth_callback(DevPtr dev, cb):
>     global _depth_cb
>     if cb is not None:
>         _depth_cb = cb
>         freenect_set_depth_callback(dev._ptr, depth_cb)
>                                               ^
> ------------------------------------------------------------
> /builddir/build/BUILD/libfreenect-
> 0.7.0/wrappers/python/freenect.pyx:351:46: Cannot assign type 'void
> (freenect_device *, void *, uint32_t) except * nogil' to
> 'freenect_depth_cb'

You probably have to patch that declaration to add "noexcept".  See
https://src.fedoraproject.org/rpms/python-pari-jupyter/blob/rawhide/f/python-pari-jupyter-cython3.patch
for an example.  If that is the issue, see
https://cython.readthedocs.io/en/latest/src/userguide/migrating_to_cy30.html#exception-values-and-noexcept
for more information.
-- 
Jerry James
http://www.jamezone.org/
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to