Traceback
--
| =========
|
| Traceback (most recent call last):
| File "/home/docs/checkouts/readthedocs.org/user_builds/pytest/envs/14066/lib/python3.13/site-packages/sphinx/cmd/build.py", line 414, in build_main
| app = Sphinx(
| srcdir=args.sourcedir,
| ...<14 lines>...
| exception_on_warning=args.exception_on_warning,
| )
| File "/home/docs/checkouts/readthedocs.org/user_builds/pytest/envs/14066/lib/python3.13/site-packages/sphinx/application.py", line 299, in __init__
| self.setup_extension(extension)
| ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
| File "/home/docs/checkouts/readthedocs.org/user_builds/pytest/envs/14066/lib/python3.13/site-packages/sphinx/application.py", line 505, in setup_extension
| self.registry.load_extension(self, extname)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
| File "/home/docs/checkouts/readthedocs.org/user_builds/pytest/envs/14066/lib/python3.13/site-packages/sphinx/registry.py", line 562, in load_extension
| metadata = setup(app)
| File "/home/docs/checkouts/readthedocs.org/user_builds/pytest/envs/14066/lib/python3.13/site-packages/sphinxcontrib_trio/__init__.py", line 408, in setup
| del directives._directives["autofunction"]
| ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
| KeyError: 'autofunction'
Seems an incompatibility with sphinx 9.0. Pinning sphinx to <9.0 solves the issue.
Hi,
When building the pytest docs, we are getting this error:
Seems an incompatibility with sphinx 9.0. Pinning sphinx to
<9.0solves the issue.