kanishka-linux / kawaii-player

Multimedia player, media library manager and portable media server with PC-To-PC casting feature.
GNU General Public License v3.0
617 stars 44 forks source link

Error compiling Cython file #50

Closed 3052 closed 5 months ago

3052 commented 5 months ago
> python setup.py sdist
Error compiling Cython file:
------------------------------------------------------------
...
        assert self._ctx
        cdef uint64_t name = <uint64_t>id(self)
        self.callback = callback
        self.callbackthread.set(callback)
        with nogil:
            mpv_set_wakeup_callback(self._ctx, _c_callback, <void*>name)
                                               ^
------------------------------------------------------------

pympv\mpv.pyx:681:47: Cannot assign type 'void (void *) except * nogil' to 'void (*)(void *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to the type of '_c_callback'.

Error compiling Cython file:
------------------------------------------------------------
...
        else:
            raise PyMPVError("Unknown api_type %r" % api_type)

        if opengl_init_params is not None:
            self._get_proc_address = opengl_init_params["get_proc_address"]
            gl_params.get_proc_address = &_c_getprocaddress
                                         ^
------------------------------------------------------------

pympv\mpv.pyx:866:41: Cannot assign type 'void *(*)(void *, const char *) except? NULL nogil' to 'void *(*)(void *, const char *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.

Error compiling Cython file:
------------------------------------------------------------
...

        return RenderFrameInfo()._from_struct(&info)

    def set_update_callback(self, cb):
        with nogil:
            mpv_render_context_set_update_callback(self._ctx, &_c_updatecb, <void *>cb)
                                                              ^
------------------------------------------------------------

pympv\mpv.pyx:945:62: Cannot assign type 'void (*)(void *) except * nogil' to 'mpv_render_update_fn' (alias of 'void (*)(void *) noexcept nogil'). Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Traceback (most recent call last):
  File "D:\Desktop\kawaii-player-master\setup.py", line 82, in <module>
    ext_modules = cythonize(extensions, force=True),
  File "C:\python\lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
    cythonize_one(*args)
  File "C:\python\lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pympv/mpv.pyx