yuuno icon indicating copy to clipboard operation
yuuno copied to clipboard

audioop was deprecated (3.11) and removed (3.13) from python std lib

Open xmoforf opened this issue 8 months ago • 1 comments

not sure if anyone is on the other end here, but just a tiny fix.

xmoforf avatar May 27 '25 14:05 xmoforf

Yuuno loads with some warnings as well. I may try to fix it, but if anyone is listening I thought i'd drop it here. Looks like:

  • A warning about pkg_resources deprecation
  • Looks like log level was missing in a MessageLevel object.
[/home/user/venv/lib/python3.13/site-packages/yuuno/autodiscover.py:18](https://vs.example.org/lab/tree/projects/venv/lib/python3.13/site-packages/yuuno/autodiscover.py#line=17): UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
During logging of a vapoursynth-message, this exception occured:
Traceback (most recent call last):
  File "[/home/user/venv/lib/python3.13/site-packages/yuuno/vs/extension.py", line 165](https://vs.example.org/lab/tree/projects/venv/lib/python3.13/site-packages/yuuno/vs/extension.py#line=164), in _on_vs_log
    cb(level, message)
    ~~^^^^^^^^^^^^^^^^
  File "[/home/user/venv/lib/python3.13/site-packages/yuuno_ipython/ipy_vs/log.py", line 61](https://vs.example.org/lab/tree/projects/venv/lib/python3.13/site-packages/yuuno_ipython/ipy_vs/log.py#line=60), in _push_log_msg
    level = level.value
            ^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'value'

xmoforf avatar May 27 '25 14:05 xmoforf