Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imghdr is deprecated and slated for removal in Python 3.13 #67

Closed
labrys opened this issue Dec 19, 2022 · 4 comments
Closed

imghdr is deprecated and slated for removal in Python 3.13 #67

labrys opened this issue Dec 19, 2022 · 4 comments
Labels

Comments

@labrys
Copy link

labrys commented Dec 19, 2022

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

@sampsyo
Copy link
Member

sampsyo commented Dec 22, 2022

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…)

@baldurmen
Copy link

baldurmen commented Sep 27, 2024

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 #75 it would be really great.

@gbcox
Copy link

gbcox commented Nov 3, 2024

It has been patched in Fedora F41. Just has to be propagated through the mirrors:

  • Apply patches from v0.12.0 to 6accdc4
  • Also apply PR 73 to avoid python 3.13 breakage (although it will regress on more obscure image formats)

@jackwilsdon
Copy link
Member

mediafile v0.13.0 has been released with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants