Skip to content

Fix the Jinjav pipeline errors in mkdocs

Julian requested to merge fix-mkdocs-jinjav2 into main

Intro

If you are using Mkdocs and noticed your latest CI pipelines are failing, with the following errors:

AttributeError: module 'jinja2' has no attribute 'contextfilter'

Keep in mind, this issue only started to appear after March 24th 2022. If you have not made any commits to your project since then, this error may not have yet, been shown.

Why

This is related to a new release of Jinja in a GitHub package, used by Mkdocs. The version range specified in our default setup, does not install this new release.

This merge request with the commit will update the version of MkDocs, to include release v1.2.4, used in your project with the requirements.txt file. See the "Changes" tab to preview see the file differences.

MkDocs updated the fix here which is in the new release.

What to do now

If you encountered this error, click the "merge" button below, to add this change to your default branch. Hopefully, your CI pipelines will start passing again. If not, you can try opening an issue in the students/class group, to help investigate further.

If you already solved this issue, you can safely close this merge request.


This "merge request" was generated by a script :)

Merge request reports