Skip to content

ffpyplayer is not compiling #146

Description

@matthiasharrer

Hi,

when I tried building an ffpyplayer wheel yesterday I faced issues while compiling.
I am not sure what changed. Probably there were some updates of python / compiler / dependencies or similar.

The same issues occured in previously working github workflows (in dependent projects) as well as when trying to just build the wheel locally (checking out your current master and running pip wheel .).

Error compiling Cython file:
------------------------------------------------------------
...
    old_callback = _log_callback
    if callback is None:
        av_log_set_callback(&av_log_default_callback)
        _log_callback = None
    elif not default_only or old_callback is None:
        av_log_set_callback(&_log_callback_func)
                            ^
------------------------------------------------------------

ffpyplayer/tools.pyx:182:28: Cannot assign type 'void (*)(void *, int, const char *, va_list) except * nogil' to 'void (*)(void *, int, const char *, va_list) noexcept nogil'

I can make it compile by adding "noexcept" to 3 different places shown in the compiler errors, but I am not sure if that is a proper fix or if it will cause other issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions