python-docs-uk icon indicating copy to clipboard operation
python-docs-uk copied to clipboard

No module named 'imghdr' for Python 3.10 and older

Open rffontenelle opened this issue 11 months ago • 0 comments

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 avatar Feb 04 '25 17:02 rffontenelle