Bug 2233118 - rst2pdf doesn't work with Sphinx 7.1+ in Fedora Rawhide
Summary: rst2pdf doesn't work with Sphinx 7.1+ in Fedora Rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rst2pdf
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2225274
TreeView+ depends on / blocked
 
Reported: 2023-08-21 14:10 UTC by Karolina Surma
Modified: 2023-08-28 18:29 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-08-28 18:29:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-08-21 14:10:37 UTC
Found when building documentation for python-PyMuPDF:

Could not import extension rst2pdf.pdfbuilder (exception: cannot import name 'versionlabels' from 'sphinx.locale' (/usr/lib/python3.12/site-packages/sphinx/locale/__init__.py))

Version 0.97 which we have in Fedora, doesn't support this Sphinx version.
This has been mitigated upstream, with the latest released version being 0.101 so a simple rebase might help.

Reproducible: Always

Steps to Reproduce:
Try to build python-PyMuPDF locally in mock:

Test locally in mock: 
$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/sphinx-7.1.2/fedora-rawhide-x86_64/ --no-clean your.src.rpm
$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/sphinx-7.1.2/fedora-rawhide-x86_64/ shell

Comment 1 Sergio Pascual 2023-08-28 18:29:42 UTC
I have built the update today

https://koji.fedoraproject.org/koji/taskinfo?taskID=105451679


Note You need to log in before you can comment on or make changes to this bug.