Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • B Benjamin Scott
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Academany
  • Textile Academy
  • 2022
  • students
  • Benjamin Scott
  • Merge requests
  • !1

Fix the Jinjav pipeline errors in mkdocs

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Julian Gallimore requested to merge fix-mkdocs-jinjav2 into main Mar 28, 2022
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

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'

If you have not made any commits to your project since March 24th 2022, you may not have yet triggered the error. You can keep this untill you next make a commit which will then run the mkdocs build command, then see if the error appears.

If you already solved this issue, or is not relavant, you can safely close this merge request.

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.

Hope this helps.


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

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-mkdocs-jinjav2