Hi Patrice,

On 3/28/22 08:56, Patrice CHOTARD wrote:


On 3/28/22 09:52, Patrice CHOTARD wrote:
Hi all

Since this morning, Testsuites "htmldocs" is failing (see log below) which is 
blocking
all others tests ("test.py" and "World build")


$ make htmldocs
   HOSTCC  scripts/basic/fixdep
   SPHINX  htmldocs --> file:///builds/u-boot/custodians/u-boot-stm/doc/output
   PARSE   include/linker_lists.h
Traceback (most recent call last):
   File "/tmp/venvhtml/bin/sphinx-build", line 5, in <module>
     from sphinx.cmd.build import main
   File "/tmp/venvhtml/lib/python3.8/site-packages/sphinx/cmd/build.py", line 25, in 
<module>
     from sphinx.application import Sphinx
   File "/tmp/venvhtml/lib/python3.8/site-packages/sphinx/application.py", line 43, 
in <module>
     from sphinx.registry import SphinxComponentRegistry
   File "/tmp/venvhtml/lib/python3.8/site-packages/sphinx/registry.py", line 24, in 
<module>
     from sphinx.builders import Builder
   File "/tmp/venvhtml/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 
26, in <module>
     from sphinx.util import import_object, logging, progress_message, rst, 
status_iterator
   File "/tmp/venvhtml/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' 
(/tmp/venvhtml/lib/python3.8/site-packages/jinja2/__init__.py)

https://github.com/pallets/jinja/blob/main/CHANGES.rst#version-310

"environmentfilter and environmentfunction are replaced by pass_environment."

Which was introduced back in version 3.0.0 (and the older functions were then deprecated).

I assume the requirements should be bumped to use Jinja2 >=3.0.0 and the deprecated functions be replaced appropriately. (checking that it still builds in 3.0.0 and 3.1.1 with the same code)

Cheers,
Quentin

Reply via email to