user12529618
user12529618

Reputation:

Checking Ansible version(ansible --version) but getting following error

And Jinja2 modules Requirement already satisfied

Traceback (most recent call last):
  File "/usr/bin/ansible", line 60, in <module>
    import ansible.constants as C
  File "/usr/lib/python3.7/site-packages/ansible/constants.py", line 12, in <module>
    from jinja2 import Template
ModuleNotFoundError: No module named 'jinja2'

Upvotes: 1

Views: 535

Answers (1)

Zeitounator
Zeitounator

Reputation: 44760

This looks like a broken install. A dependency is missing. Try:

pip3 install jinja2

This is not really supposed to happen when you install ansible "normally". If the above does not fix your problem, I suggest you reinstall ansible from scratch on your system

Upvotes: 1

Related Questions