You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python-discord fails to build on Debian and Ubuntu, because the documentation fails to build with sphinx 7.4.7.
Minimal Reproducible Code
cddocs&&python3-msphinx . ../debian/html
Expected Results
produce documentation
Actual Results
cd docs && python3 -m sphinx . ../debian/html
Running Sphinx v7.2.6
WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English).
Extension error:
Could not import extension builder (exception: cannot import name 'ltz' from 'sphinx.builders.gettext' (/usr/lib/python3/dist-packages/sphinx/builders/gettext.py))
make[1]: *** [debian/rules:10: execute_after_dh_auto_build] Error 2
The library's documentation is explicitly built with Sphinx 4.4.0 as per the pyproject.toml file. There's no such pressure to update the Sphinx used since they undergo breaking changes semi-frequently. We have one PR (#9556) for it but it involved way too many hacks and compatibility workarounds to really put time into merging and thus is stale.
In order to fix your issue you should use the Sphinx version specified in the pyproject.toml rather than using the bumped version though, especially since the breaking changes include significant styling changes from base Sphinx.
We only have one sphinx version in the Debian or Ubuntu archive (see https://tracker.debian.org/pkg/sphinx and https://launchpad.net/ubuntu/+source/sphinx). The old Sphinx 4.4.0 version is not available any more. We either need to carry a patch in the packaging to make it work with the newer version or drop the documentation (or the complete package).
Summary
Documentation fails to build with sphinx 7.4.7
Reproduction Steps
python-discord fails to build on Debian and Ubuntu, because the documentation fails to build with sphinx 7.4.7.
Minimal Reproducible Code
Expected Results
produce documentation
Actual Results
Intents
not relevant
System Information
Debian unstable and Ubuntu 24.10 (oracular)
Checklist
Additional Context
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-discord/+bug/2079808
The text was updated successfully, but these errors were encountered: