executable location = /users/share/awx00/venv/2.8.3/bin/ansible-playbook
python version = 3.6.8 (default, Nov 21 2019, 19:31:34) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)]
Using /etc/ansible/ansible.cfg as config file
ERROR! Unexpected Exception, this is probably a bug: cannot import name ‘_psutil_linux’
to see the full traceback, use -vvv
Does anyone have an idea?
Note : psutil and python-memcached are installed as you can see with the “pip list” result below !
I haven’t really found a solution.
The workaround that I found (but it’s really not good) is to create a virtualenv, then install the libraries “wheel”, “psutil”, “ansible” etc…
Then on AWX, execute a template which returns me the error message “cannot import name '_psutil_linux” then uninstall the “psutil” library from my virtualenv .
I then execute the same template and it works!
Note that if I create the virtualenv WITHOUT “psutil”, I get the message “no module named psutil” …! unbelievable…
thanks for your reply.
I can confirm that uninstalling psutil I can execute the template in the virtualenv.
This is really weird.
Then the next module error appears telling me ansible vault would require the cryptography module, which also is installed.
Could be a python error, I am not sure.
I will experiment a bit and report back if I find anything helpful.
Yes It’s seems when I run my Template with the virtualenv, the python version is 3.6.8 (python version inside container) and not 3.8.5 (version inside my custom virtualenv)
I would like to have the advice of Ryan Petrello, the best in AWX ahah