This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Maciej Olko
Recipients Maciej Olko, docs@python, erlendaasland, lukasz.langa, mdk, miss-islington, ned.deily, pablogsal
Date 2022-03-24.23:04:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648163056.2.0.392763596137.issue45618@roundup.psfhosted.org>
In-reply-to
Content
After the Jinja version 3.1.0 release today [1], documentation builds fail for all stable branches. Sphinx in versions pinned on those branches fails with ImportError. [2]

Backporting 14a4fce457033412278ca9a056787db424310dc3 to 3.10 and 3.9 fixes the problem for them (build is successful with 4.2.0). For 3.8 and 3.7 pinning down Jinja is required (docs don't build smoothly with 4.2.0 for those branches).

Could some core developer help with the backports?

I am starting to work on PRs with pins for 3.8 and 3.7.


[1] https://jinja.palletsprojects.com/en/3.1.x/changes/#version-3-1-0
[2] % sphinx-build --version                                  
Traceback (most recent call last):
  File "…/cpython/Doc/./venv/bin/sphinx-build", line 5, in <module>
    from sphinx.cmd.build import main
  File "…/cpython/Doc/venv/lib/python3.9/site-packages/sphinx/cmd/build.py", line 25, in <module>
    from sphinx.application import Sphinx
  File "…/cpython/Doc/venv/lib/python3.9/site-packages/sphinx/application.py", line 42, in <module>
    from sphinx.registry import SphinxComponentRegistry
  File "…/cpython/Doc/venv/lib/python3.9/site-packages/sphinx/registry.py", line 24, in <module>
    from sphinx.builders import Builder
  File "…/cpython/Doc/venv/lib/python3.9/site-packages/sphinx/builders/__init__.py", line 26, in <module>
    from sphinx.util import import_object, logging, rst, progress_message, status_iterator
  File "…/cpython/Doc/venv/lib/python3.9/site-packages/sphinx/util/rst.py", line 22, in <module>
    from jinja2 import environmentfilter
ImportError: cannot import name 'environmentfilter' from 'jinja2' (…/cpython/Doc/venv/lib/python3.9/site-packages/jinja2/__init__.py)
History
Date User Action Args
2022-03-24 23:04:16Maciej Olkosetrecipients: + Maciej Olko, ned.deily, docs@python, lukasz.langa, mdk, pablogsal, miss-islington, erlendaasland
2022-03-24 23:04:16Maciej Olkosetmessageid: <1648163056.2.0.392763596137.issue45618@roundup.psfhosted.org>
2022-03-24 23:04:16Maciej Olkolinkissue45618 messages
2022-03-24 23:04:16Maciej Olkocreate