From 18792c83b4529621a7e5a6ca534a950fa8fc3e33 Mon Sep 17 00:00:00 2001 From: vietlh Date: Sun, 31 May 2026 15:59:26 +0700 Subject: [PATCH] Fix docs build failure on Python 3.13+ by upgrading Sphinx sphinx==5.0.0 imports `imghdr` via sphinx.util.images, a stdlib module removed in Python 3.13. Upgrading to sphinx>=7.0.0 removes this dependency. Fixes #9432 --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 2a50d9b8f45..6f53f294a2f 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -2,7 +2,7 @@ matplotlib numpy sphinx-copybutton>=0.3.1 sphinx-gallery>=0.11.1 -sphinx==5.0.0 +sphinx>=7.0.0 tabulate -e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme pycocotools