Bug 2246950

Summary: python-sphinxcontrib-zopeext fails to import 'ObjectMembers' from 'sphinx.ext.autodoc' (Sphinx 7.2.6 on Fedora Rawhide (40+))
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-sphinxcontrib-zopeextAssignee: Jerry James <loganjerry>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: loganjerry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-sphinxcontrib-zopeext-0.4.2-4.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-30 14:53:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2232469    

Description Karolina Surma 2023-10-30 08:54:54 UTC
python-sphinxcontrib-zopeext fails to import 'ObjectMembers' from 'sphinx.ext.autodoc' (Sphinx 7.2.6 on Fedora Rawhide (40+))

The issue detected (discovered in python-ZODB)
```
+ make -C docs html SPHINXBUILD=/usr/bin/sphinx-build PYTHONPATH=/builddir/build/BUILD/ZODB-5.8.1/src
make: Entering directory '/builddir/build/BUILD/ZODB-5.8.1/docs'
mkdir -p build/html build/doctrees
/usr/bin/sphinx-build -b html -d build/doctrees   . build/html
Running Sphinx v7.2.6

Extension error:
Could not import extension sphinxcontrib.zopeext.autointerface (exception: cannot import name 'ObjectMembers' from 'sphinx.ext.autodoc' (/usr/lib/python3.12/site-packages/sphinx/ext/autodoc/__init__.py))
make: Leaving directory '/builddir/build/BUILD/ZODB-5.8.1/docs'
```

For the logs from testing build attempts, see:
https://copr.fedorainfracloud.org/coprs/ksurma/sphinx-7.2.6/package/python-ZODB

You can test you package in mock running:

$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/sphinx-7.2.6/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.2.6/fedora-rawhide-x86_64/ shell

We'd like to include Sphinx 7.2.x in Fedora 40.

Let us know here if you have any questions. Thank You!

Comment 1 Jerry James 2023-10-30 14:53:23 UTC
There was already an upstream PR to address this.  I have added the patch and built in Rawhide.