From c83a7a6c0f62e08e5d398467e3f2f7bb28c166cb Mon Sep 17 00:00:00 2001 From: Vladimir Rutsky Date: Mon, 20 Mar 2017 01:33:08 +0300 Subject: [PATCH] limit jinja2 version to <2.9 Ansible 2.2.1 requires jinja2<2.9, see , but without explicit limiting upper jinja2 version here pip ignores Ansible requirements and installs latest available jinja2 (pip is not very smart here), which is incompatible with with Ansible 2.2.1. With incompatible jinja2 version "ansible-vault create" (and probably other parts) fails with: ERROR! Unexpected Exception: The 'jinja2<2.9' distribution was not found and is required by ansible This upper limit should be removed in 2.2.2 release, see: --- requirements.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 74d647955..fc964b1a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,14 @@ ansible>=2.2.1 netaddr -jinja2>=2.8 +# Ansible 2.2.1 requires jinja2<2.9, see , +# but without explicit limiting upper jinja2 version here pip ignores +# Ansible requirements and installs latest available jinja2 +# (pip is not very smart here), which is incompatible with with +# Ansible 2.2.1. +# With incompatible jinja2 version "ansible-vault create" (and probably other parts) +# fails with: +# ERROR! Unexpected Exception: The 'jinja2<2.9' distribution was not found +# and is required by ansible +# This upper limit should be removed in 2.2.2 release, see: +# +jinja2>=2.8,<2.9