interprete_python error..

164 views
Skip to first unread message

Shivakumar Venkataswamy

unread,
Jun 17, 2022, 1:55:45 AM6/17/22
to Ansible Project
Hi team,
I'm traying to install python modules.. during execute facing below error.. please help me out..

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named pkg_resources
fatal: [172.16.13.160]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (setuptools) on 172.16.13.160's Python /usr/bin/python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

dulh...@mailbox.org

unread,
Jun 17, 2022, 3:30:58 AM6/17/22
to ansible...@googlegroups.com

I am pretty new to Ansible myself, but based on the error message the first thing I would try was checking whether a package python-setuptools was installed on the 
172.16.13.160 host.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3ddc914f-11b4-4996-98e2-6d5a3d76a444n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages