Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

0 votes

While trying to install Headwind Remote, I'm getting errors:

[WARNING]: Skipping plugin (/usr/lib/python3/dist-

packages/ansible/plugins/filter/core.py) as it seems to be invalid: cannot

import name 'environmentfilter' from 'jinja2.filters'

(/usr/local/lib/python3.8/dist-packages/jinja2/filters.py)

[WARNING]: Skipping plugin (/usr/lib/python3/dist-

packages/ansible/plugins/filter/mathstuff.py) as it seems to be invalid: cannot

import name 'environmentfilter' from 'jinja2.filters'

(/usr/local/lib/python3.8/dist-packages/jinja2/filters.py)

TASK [Process Nginx configuration] *********************************************
fatal: [localhost]: FAILED! => {"msg": "template error while templating string: No filter named 'regex_replace'.. String: ./dist/conf/nginx/{{ item | basename | regex_replace('\\\\.j2$', '') }}"}
I'm installing on Ubuntu 20.04. How to fix the issue?
by (21.7k points)

1 Answer

0 votes

The problem is in one of the Python modules (jinja2). 

The issue can be fixed by the following commands:

pip uninstall jinja2

pip install jinja2==3.0.3

After that, re-run the installer and it should work without issues.

by (21.7k points)
...