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

No module named 'imghdr' for Python 3.10 and older #22

Open
rffontenelle opened this issue Feb 4, 2025 · 0 comments · May be fixed by #23
Open

No module named 'imghdr' for Python 3.10 and older #22

rffontenelle opened this issue Feb 4, 2025 · 0 comments · May be fixed by #23

Comments

@rffontenelle
Copy link

rffontenelle commented Feb 4, 2025

Could not import extension sphinx.builders.epub3 (exception: No module named 'imghdr')

This is happening because actions/setup-python is using Python 3.13 binary (latest version available in ubuntu-latest, recently updated to 24.04) and 'imghdr' was removed in Python 3.13 (See imghdr in 3.12 docs).

Pinning actions/setup-python to use Python 3.12 is the easiest way out.

@rffontenelle rffontenelle linked a pull request Feb 4, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant