imageio-ffmpeg icon indicating copy to clipboard operation
imageio-ffmpeg copied to clipboard

pkg_resources is deprecated

Open nhairs opened this issue 2 years ago • 1 comments

When running my own tests the following warning is thrown: /code/.tox/py311/lib/python3.11/site-packages/imageio_ffmpeg/_utils.py:7: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

The fix appears to be to use importlib.resources

nhairs avatar Dec 05 '23 06:12 nhairs

There's a nice migration guide here: https://importlib-resources.readthedocs.io/en/latest/migration.html

I recently made a similar change in another project (https://github.com/pygfx/wgpu-py/pull/421/files). I expect we can do something similar here.

There's no rush, since its only a warning (for now), but if someone is willing to contribute a PR that'd be great 😊

almarklein avatar Dec 05 '23 08:12 almarklein

Fixed by #109

almarklein avatar Mar 08 '24 09:03 almarklein