Repository navigation
Python 3.10.7 Docs fails with Sphinx 5.3.0 #98366
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Oct 17, 2022 CCing the hunk author: @zooba.
This issue is also observed in the python-docs-zh-tw's CI jobs for building the translated Python 3.11 doc. Here is the sample GitHub Action log.
sphinx.locale.translatorsis originally adefaultdict(gettext.NullTranslations)but changed to adictin this commit. Modify pyspecific.py'stranslators['sphinx'](3 occurrences) totranslators[('general', 'sphinx')]should probably solve the issue?Modify pyspecific.py's
translators['sphinx'](3 occurrences) totranslators[('general', 'sphinx')]should probably solve the issue?Great you found the commit which caused that. Can you please create a pull request that will make the change?
Reacted by W. H. WangI believe
sphinx.locale._could be used to the same effect, which is backwards compatible.A
Reacted by W. H. Wang- changed the title
[-]Python 3.10.7 Docs fails with Sphixn 5.3.0[/-][+]Python 3.10.7 Docs fails with Sphinx 5.3.0[/+]on Oct 19, 2022 - added 4 commits that reference this issue
on Nov 11, 2022 Thanks for fixing this!
Reacted by W. H. Wang
Noticed that here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:L/python310:doc/standard/x86_64
The problematic line:
395 label = translators['sphinx'].gettext(label)If I print the content of
translatorsI get:@AA-Turner