Bug #7542
closed
mentat-controller.py not working with jinja2 version 3.0.1.
Added by Rajmund Hruška over 2 years ago.
Updated about 2 years ago.
Category:
Development - Core
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.
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.
- 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.
- Status changed from Resolved to In Review
- To be discussed deleted (
Yes)
- Status changed from In Review to Closed
- Related to Bug #7583: Report feedback not working added
Also available in: Atom
PDF