Project

General

Profile

Actions

Bug #21605

closed

Jinja templating doesn't work with Python 3.10

Added by Anonymous over 2 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Target version:
-
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

The Jinja templating system shipped with Rudder (in the NCF package) throws a deprecation warning about distutils when using python 3.10 (Ubuntu 22.04).

Steps to reproduce :

  • install rudder agent on ubuntu 22.04
  • use a custom technique with jinja templating
  • Task errors out because python throws a warning

This result in non-working Jinja templating, which is quite unfortunate as I use it to deploy firewall rules.

Workaround :

This can be fixed temporarily by installing the "packaging" pip package and changing
"from distutils.version import StrictVersion"
to this :
"from packaging.version import Version as StrictVersion"

in the jinja2-templating.py files (which one to modify, I do not know, I've changed them all on the root server, and it seems to distribute them to the nodes)

Cheers


Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #21606: Broken jinja2 templating on ubuntu 22.04ReleasedNicolas CHARLESActions
Actions

Also available in: Atom PDF