Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1977304

Summary: ara fails to build with Sphinx 4.0.2
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: araAssignee: David Moreau Simard <dmsimard>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dmsimard, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 1890881, 1927309, 1973718    

Description Karolina Surma 2021-06-29 12:41:08 UTC
ara fails to build with Sphinx 4.0.2 in Fedora 35 (currently Rawhide).

+ sphinx-build -b html doc/source doc/build/html
Running Sphinx v4.0.2
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 14 source files that are out of date
updating environment: [new config] 14 added, 0 changed, 0 removed
reading sources... [  7%] ansible-configuration
reading sources... [ 14%] ansible-plugins-and-use-cases
reading sources... [ 21%] api-configuration
reading sources... [ 28%] api-documentation
reading sources... [ 35%] api-security
reading sources... [ 42%] api-usage
reading sources... [ 50%] changelog-release-notes
reading sources... [ 57%] cli
reading sources... [ 64%] container-images
reading sources... [ 71%] contributing
reading sources... [ 78%] distributed-sqlite-backend
reading sources... [ 85%] faq
reading sources... [ 92%] getting-started
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [  7%] ansible-configuration
writing output... [ 14%] ansible-plugins-and-use-cases
Exception occurred:
  File "/usr/lib/python3.10/site-packages/sphinx/highlighting.py", line 127, in get_lexer
    lexer = lexer_classes[lang](**opts)
TypeError: 'AnsibleYamlLexer' object is not callable


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

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 David Moreau Simard 2021-07-12 16:44:20 UTC
Hi, thanks for the report. This is tracked in the upstream project as https://github.com/ansible-community/ara/issues/277.

I have not taken care of it yet but plan to investigate and fix it upstream in the somewhat not-too-distant future.