Closed
Description
Describe the bug
There is an ImportError
when using Sphinx with the latest version of Jinja2.
How to Reproduce
On any project:
$ pip install -U jinja2
$ make html
You get the error:
File "/builds/venv/lib/python3.8/site-packages/sphinx/util/rst.py", line 21, in <module>
from jinja2 import Environment, environmentfilter
ImportError: cannot import name 'environmentfilter' from 'jinja2' (/builds/venv/lib/python3.8/site-packages/jinja2/__init__.py)
Expected behavior
Sphinx builds without error.
Your project
This will work on any project
Screenshots
No response
OS
Rocky Linux 8.5
Python version
3.8.8
Sphinx version
3.5.4
Sphinx extensions
No response
Extra tools
No response
Additional context
No response