Bug #7542
closedmentat-controller.py not working with jinja2 version 3.0.1.
100%
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
Updated by Pavel Kácha about 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.
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.
Updated by Jan Mach almost 3 years ago
- Status changed from Resolved to In Review
Updated by Pavel Kácha almost 3 years ago
- Status changed from In Review to Closed
Updated by Radko Krkoš over 2 years ago
- Related to Bug #7583: Report feedback not working added