Skip to content

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

@rffontenelle

Description

@rffontenelle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions