> 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](https://github.com/actions/runner-images/blob/c4ed0a5c106889c4d3256840b1aa761e16a37da3/images/ubuntu/Ubuntu2404-Readme.md?plain=1#L192-L197), recently updated to 24.04) and 'imghdr' was removed in Python 3.13 (See [imghdr in 3.12 docs](https://docs.python.org/3.12/library/imghdr.html#module-imghdr)). Pinning actions/setup-python to use Python 3.12 is the easiest way out.