Bug #7542

closed not working with jinja2 version 3.0.1.

Added by Rajmund Hruška over 2 years ago. Updated over 2 years ago.

Development - Core
Target version:
Start date:
Due date:
% Done:


Estimated time:
To be discussed:


While upgrading mentat-alt from 2.8.108 to 2.8.109 there was an issue with re-starting mentat-controller. Modules mentat-storage and mentat-enricher were started just fine but mentat-inspector ended with an error: ValueError: The 'mentat' package was not installed in a way that PackageLoader understands.

As Radko Krkoš noticed, in 2d708954936dcc3708d260dc2427fd41922dc1d7 the requirement for jinja2 was changed from 2.10.3 to 3.0.1. There seems to be an issue with jinja2 version 3.0.1.

Related issues

Related to Mentat - Bug #7583: Report feedback not workingClosedRadko Krkoš05/06/2022

Actions #1

Updated by Pavel Kácha over 2 years ago

  • Assignee set to Jan Mach

Seems we'll need to make some changes before greenlighting Jinja 3. Mek, could you please take a look? I guess might affect #7041 too.

Actions #2

Updated by Jan Mach over 2 years ago

  • Category set to Development - Core
  • Status changed from New to Resolved
  • Target version changed from Backlog to 2.9
  • % Done changed from 0 to 100
  • To be discussed changed from No to Yes

As it turns out the root of the problem was surprisingly somewhere else. The template files for inspection emails were not listed in the file, so they were not included in the wheel package at all. Since this feature was never used in production, the error was never discovered, because Jinja apparently previously did not report the problem with missing unused files for package_loader. I have upgraded Jinja to version 3.0.3 and all worked well on mentat-alt.

Actions #3

Updated by Jan Mach over 2 years ago

  • Status changed from Resolved to In Review
Actions #4

Updated by Pavel Kácha over 2 years ago

  • To be discussed deleted (Yes)
Actions #5

Updated by Pavel Kácha over 2 years ago

  • Status changed from In Review to Closed
Actions #6

Updated by Radko Krkoš about 2 years ago

  • Related to Bug #7583: Report feedback not working added

Also available in: Atom PDF