Skip to content

Local environment setup failed with Python 3.13.1 due to No module named 'imghdr' #15811

Open
@codersjj

Description

@codersjj

Page

Abstract

After downloading the latest version of Python (currently 3.13.1) for Windows:

Image

I attempted to run ./docs.sh, but encountered the following error:

Image

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

Upon investigating the issue, I found a related discussion in the Sphinx repository: sphinx-doc/sphinx#10440. Based on the information there, it appears that the problem might be related to compatibility issues with Python 3.13.1.

To resolve the issue, I decided to switch to Python 3.11. After installing Python 3.11 and re-running ./docs.sh, the script executed successfully without any errors:

Image

Image

I would appreciate it if the maintainers could investigate and address this issue to ensure compatibility with Python 3.13. 😃

Pull request

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions