Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jinja2 2.6+ required #1

Open
hmmbug opened this issue May 25, 2015 · 0 comments
Open

jinja2 2.6+ required #1

hmmbug opened this issue May 25, 2015 · 0 comments

Comments

@hmmbug
Copy link

hmmbug commented May 25, 2015

Thanks for a great set of macros! I'd like to recommend a minor addition to the documentation. Please could you specify jinja2 2.6 or newer is required as older versions give cryptic messages like this from ansible:

fatal: [myserver] => {'msg': "TemplateAssertionError: no test named 'mapping'", 'failed': True}

or this from other python scripts where the full stack track can be seen:

Traceback (most recent call last):
  File "./validate.py", line 24, in <module>
    t = Template(template_text)
  File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 625, in __new__
    return env.from_string(source, template_class=cls)
  File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 563, in from_string
    return cls.from_code(self, self.compile(source), globals, None)
  File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 448, in compile
    self.handle_exception(exc_info, source_hint=source)
  File "<unknown>", line 13, in template
jinja2.exceptions.TemplateAssertionError: no test named 'mapping'

Linux distros such as CentOS 6.6 install older versions (eg. 2.2.1) with the EPEL ansible 1.9.1 package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant