Bug 1977331

Summary: python-h2 fails to build with Sphinx 4.0.2
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-h2Assignee: Robert-André Mauchin 🐧 <eclipseo>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: eclipseo, python-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-h2-4.0.0-6.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-29 19:47:13 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: 1973718    

Description Karolina Surma 2021-06-29 13:28:10 UTC
python-h2 fails to build with Sphinx 4.0.2 in Fedora 35 (currently Rawhide).

+ sphinx-build-3 docs/source html
Running Sphinx v4.0.2
making output directory... done
...
WARNING: autodoc: failed to import class 'connection.H2Connection' from module 'h2'; the following exception was raised:
No module named 'h2'
WARNING: autodoc: failed to import class 'config.H2Configuration' from module 'h2'; the following exception was raised:
No module named 'h2'
WARNING: autodoc: failed to import class 'events.RequestReceived' from module 'h2'; the following exception was raised:
No module named 'h2'
...
done
checking consistency... done
preparing documents... done
writing output... [  5%] advanced-usage
writing output... [ 10%] api
...
dumping object inventory... done
build succeeded, 41 warnings.
The HTML pages are in html.
+ rm -rf html/.doctrees html/.buildinfo
+ rm -v html/_static/underscore.js
removed 'html/_static/underscore.js'
+ ln -s /usr/share/javascript/underscore/underscore-min.js html/_static/underscore.js
+ rm -v html/_static/underscore-1.12.0.js
rm: cannot remove 'html/_static/underscore-1.12.0.js': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.TUhnKD (%build)
    Bad exit status from /var/tmp/rpm-tmp.TUhnKD (%build)
RPM build errors:
Child return code was: 1

For the logs from testing build attempts, see:
https://copr.fedorainfracloud.org/coprs/ksurma/pygments-2.9.0/package/python-h2/

You can test you package using Koji scratch build
koji build --scratch <srpm>

For details regarding the Sphinx change, see https://fedoraproject.org/wiki/Changes/Sphinx4
Let us know here if you have any questions. Thank you!

Comment 1 Fedora Update System 2021-06-29 19:46:29 UTC
FEDORA-2021-ff4102da42 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-ff4102da42

Comment 2 Fedora Update System 2021-06-29 19:47:13 UTC
FEDORA-2021-ff4102da42 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.