Program throws "Exception function has keyword-only parameters or annotations, use inspect.signature() API which can support them" when I try to add an event callback.
I fixed this by changing
if not any(getargspec(callback)[:2]): # list(...)
raise VLCException("%s required: %r" % ('argument', callback))
to
if not any(getfullargspec(callback)[:2]): # list(...)
raise VLCException("%s required: %r" % ('argument', callback))
in vlc.EventManager.event_attach()
Is there i way I could fix this without actually modifying the library?
Actually, the patch is already present in the generator/template/header.py and -/override.py files, see function len_args. The generated/vlc.py file needs to be regenerated.
Program throws "Exception function has keyword-only parameters or annotations, use inspect.signature() API which can support them" when I try to add an event callback. I fixed this by changing
to
in
vlc.EventManager.event_attach()
Is there i way I could fix this without actually modifying the library?