mediafile icon indicating copy to clipboard operation
mediafile copied to clipboard

`imghdr` is deprecated and slated for removal in Python 3.13

Open labrys opened this issue 2 years ago • 1 comments

The Python standard library will be removing imghdr in Python 3.13. Per PEP-594 suggested replacements are filetype, puremagic, and python-magic.

labrys avatar Dec 19 '22 18:12 labrys

Yes indeed—thanks for opening the issue. We should switch sooner rather than later.

(It's too bad about these deprecations, to be honest! I know they were rarely used, but they did their job quietly and well…)

sampsyo avatar Dec 22 '22 01:12 sampsyo

Python 3.13 will be released shortly and that's what we'll be using for the next Debian release (Debian 13).

If this issue isn't fixed before we freeze packages for Debian 13 (sometime in Q1 2025?), we won't be able to ship this library and that'll snowball to other distros like Ubuntu and Linux Mint :(

If someone could have a look at https://github.com/beetbox/mediafile/pull/75 it would be really great.

baldurmen avatar Sep 27 '24 18:09 baldurmen