Since an update of my system, Ansible is not working.
The ansible answers :
ERROR! Unexpected Exception, this is probably a bug: module ‘ansible.constants’ has no attribute ‘CONTROLLER_PYTHON_WARNING’
the full traceback was:
Traceback (most recent call last):
File “/home/user/.local/bin/ansible”, line 76, in
if C.CONTROLLER_PYTHON_WARNING and not _PY38_MIN:
AttributeError: module ‘ansible.constants’ has no attribute ‘CONTROLLER_PYTHON_WARNING’
I don’t know exactly which update it is because I didn’t notice this issue immediatly and what package is responsible.
I tried to reinstall and downgrade Ansible.
I tried to downgrade Python.
I tried to force use Python3 or Python2 but nothing changes.
I don’t understand this error.
I used a lot ansible and ansible-playbook and overnight I get this error.
It is not about your configuration. You have a binary in your home folder. Pacman does not install files to your home folder!
You musst at least changed your PATH variable and added a file called ansible to this folder.
The ansible from the pacman package is located in /usr/bin and not in your home.
If you don’t know how you build and installed this third-party binary in your home folder, nobody knows. You should know what you did to your system.
Thank you I found the problem.
I never changed this configuration and I don’t know my ansible is now in .local/bin…
By running “ansible”, I have the problem but “/usr/bin/ansible”, it works.
I deleted all files ansible* in my .local/bin and now it works.