Package Details: python-pympv 0.7.1-2

Git Clone URL: https://aur.archlinux.org/python-pympv.git (read-only, click to copy)
Package Base: python-pympv
Description: Python wrapper for libmpv
Upstream URL: https://github.com/marcan/pympv
Licenses: GPL3
Conflicts: python-mpv
Submitter: eclairevoyant
Maintainer: None
Last Packager: eclairevoyant
Votes: 0
Popularity: 0.000000
First Submitted: 2022-11-07 07:13 (UTC)
Last Updated: 2023-05-14 20:19 (UTC)

Latest Comments

xiota commented on 2023-10-16 07:36 (UTC)

Clean chroot. Cython errors during build.

performance hint: mpv.pyx:771:5: Exception check on '_c_updatecb' 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.
performance hint: mpv.pyx:1051:5: Exception check on '_c_callback' 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:
------------------------------------------------------------
...
        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)
                                               ^
------------------------------------------------------------

mpv.pyx:690:47: Cannot assign type 'void (void *) except * nogil' to 'void (*)(void *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (void *) except * nogil'.

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
                                         ^
------------------------------------------------------------

mpv.pyx:875: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 type 'void *(void *, const char *) except? NULL nogil'.

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)
                                                              ^
------------------------------------------------------------

mpv.pyx:954:62: Cannot assign type 'void (*)(void *) except * nogil' to 'mpv_render_update_fn'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (void *) except * nogil'.
[1/1] Cythonizing mpv.pyx
Traceback (most recent call last):
  File "/home/main-builder/pkgwork/src/pympv-0.7.1/setup.py", line 57, in <module>
    extensions = cythonize(extensions, force=True)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
    cythonize_one(*args)
  File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: mpv.pyx

eclairevoyant commented on 2023-05-14 20:20 (UTC) (edited on 2023-05-16 21:23 (UTC) by eclairevoyant)

@xiota you're right, must've been a brain-off kind of day. fixed.

eclairevoyant commented on 2023-02-12 07:48 (UTC)

So it looks like an issue that's fixed upstream, and they haven't put out a versioned release since then so if you need this library I'd suggest using python-pympv-git instead.

eclairevoyant commented on 2023-02-12 06:38 (UTC)

Thanks for reporting, will take a look.

j77h commented on 2023-02-12 05:12 (UTC) (edited on 2023-02-12 05:13 (UTC) by j77h)

[1/1] Cythonizing mpv.pyx
/usr/lib/python3.10/site-packages/Cython/Compiler/Main.py:369: 
FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). 
This will change in a later release! 
File: /home/xxx/.cache/pikaur/build/python-pympv/src/pympv-0.7.1/mpv.pyx

and

mpv.c:763:10: fatal error: mpv/opengl_cb.h: No such file or directory
763 | #include "mpv/opengl_cb.h"
|          ^~~~~~~~~~~~~~~~~
compilation terminated.

Not a big deal for me as I'm using jaseg's libmpv wrapper now, but thought you might want to know ...