Project

General

Profile

Actions

Bug #7542

closed

mentat-controller.py not working with jinja2 version 3.0.1.

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development - Core
Target version:
Start date:
12/01/2021
Due date:
% Done:

100%

Estimated time:
To be discussed:

Description

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
Actions #1

Updated by Pavel Kácha almost 3 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 almost 3 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 MANIFEST.in 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 almost 3 years ago

  • Status changed from Resolved to In Review
Actions #4

Updated by Pavel Kácha almost 3 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š over 2 years ago

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

Also available in: Atom PDF