python312-sphinx missing extension failures (was Updated: python 3.9/3.12 packages)

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Mon Sep 14 06:26:27 GMT 2026


On 2026-01-22 13:13, Marco Atzeri via Cygwin wrote:
> On 22/01/2026 15:21, Jon Turney via Cygwin wrote:
>> On 30/12/2025 11:19, Marco Atzeri via Cygwin-announce wrote:
>>> New release for
>>>
>>> UPDATE packages
>>>
>> [...]
>>>
>>> python312-docutils-0.22.4-1
>>> python39-docutils-0.22.4-1
>>
>> There seems to be an incompatibility between current versions of python- 
>> sphinx and python-docutils after this update.
>>
>>  > $ touch conf.py
>>  > $ sphinx-build -b html . output
>>  > Running Sphinx v4.4.0
>>  >
>>  > Extension error:
>>  > Could not import extension sphinx.builders.latex (exception: No module 
>> named 'roman')
> 
> Noted, I will give some priority.
> 
> I am spending more time adding new packages, than updating the old one.
> It seems a Python epidemic to use new modules or to split one package
> in multiple packages all interdependent
> 
> 
>> The relevant upstream issue seems to be:
>>
>> https://github.com/sphinx-doc/sphinx/pull/13131
>>
>> (found while trying to rebuild the botan1.10 package...)
>>
> 
> Thanks & Regards
> Marco

Hi folks,

ITA jansson, build fails due to sphinx issue:


$ tail jansson-2.15.1-1.x86_64/log/jansson-2.15.1-1-compile.log
sphinx-build -b html -d _build/doctrees 
/usr/src/jansson/jansson-2.15.1-1.x86_64/src/jansson-2.15.1/doc _build/html
Running Sphinx v7.4.7
loading translations [en]... done

Extension error:
Could not import extension sphinx.builders.changes (exception: No module named 
'tomli')
make[1]: *** [Makefile:461: html-local] Error 2
make[1]: Leaving directory '/usr/src/jansson/jansson-2.15.1-1.x86_64/build/doc'
make: *** [Makefile:654: html-recursive] Error 1
*** ERROR: make failed

Needs ChangesBuilders and HTMLBuilders - similar split dependency cause?

Looks like latest update just upgraded python39-sphinx... to 7.4.7 rather than 
replacing with python312-sphinx 9.1.0.

Can I encourage this with some setup or cygport b-r tweak(s)?

Meanwhile I will add explicit python312-sphinx b-r and see if that works?

Locally I will have to update-alternatives as:
$ file /etc/alternatives/sphinx-build
/etc/alternatives/sphinx-build: symbolic link to /usr/bin/sphinx-build-3.9

$ alternatives --config sphinx-build

There is 2 program that provides 'sphinx-build'.

   Selection    Command
-----------------------------------------------
  + 1           /usr/bin/sphinx-build-3.9
*  2           /usr/bin/sphinx-build-3.12

Enter to keep the current selection[+], or type selection number: 2
$ alternatives --display sphinx-build
sphinx-build - status is manual.
  link currently points to /usr/bin/sphinx-build-3.12
/usr/bin/sphinx-build-3.9 - priority 39
/usr/bin/sphinx-build-3.12 - priority 312
Current `best' version is /usr/bin/sphinx-build-3.12.

Rerunning thru the failures due to missing extensions:

...alabaster

Installed python3-alabaster python312-alabaster and also below and added to b-r:

...sphinxcontrib.applehelp!
...sphinxcontrib.htmlhelp
...sphinxcontrib.serializinghtml
...sphinxcontrib.qthelp

Should they be added to sphinx-build or other sphinx-... package requires?

Maybe we need a virtual sphinx package to install all required?

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


More information about the Cygwin-apps mailing list