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 deprecation warning in Python 3.11 #2177

Open
3 tasks done
primal100 opened this issue Mar 19, 2024 · 1 comment
Open
3 tasks done

imghdr deprecation warning in Python 3.11 #2177

primal100 opened this issue Mar 19, 2024 · 1 comment
Labels
Unconfirmed Bug This is a bug report that has not been triaged yet

Comments

@primal100
Copy link

Summary

imghdr is deprecated for removal in python 3.13

Reproduction Steps

Import the library in python 3.11

Minimal Reproducible Example

venv311\Lib\site-packages\tweepy\api.py:7
  <directory>\venv311\Lib\site-packages\tweepy\api.py:7: DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
    import imghdr

Expected Results

No deprecation warning

Actual Results

Deprecation warning

Twitter API Access Plan

Free

Tweepy Version

Version: 4.14.0

Checklist

  • I have searched for duplicate issues.
  • If applicable, I have shown the entire traceback.
  • If applicable, I have removed any visible credentials from my code and/or screenshots.

Additional Context

Suggestion would be to use only mimetypes to detect file type (currently both imghdr and mimetypes are used)

@primal100 primal100 added the Unconfirmed Bug This is a bug report that has not been triaged yet label Mar 19, 2024
@cclauss
Copy link
Contributor

cclauss commented May 11, 2024

Let's remove the Unconfirmed Bug label:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unconfirmed Bug This is a bug report that has not been triaged yet
Projects
None yet
Development

No branches or pull requests

2 participants