Hi team,
i am getting below error, pexpect already installed
he full traceback is:
Traceback (most recent call last):
File “/tmp/ansible_expect_payload_0bz7tQ/main.py”, line 108, in
import pexpect
ImportError: No module named pexpect
fatal: [sddc_mgr]: FAILED! => {
“changed”: false,
“invocation”: {
“module_args”: {
“chdir”: null,
“command”: “sudo /opt/vmware/sddc-support/sos --health-check”,
“creates”: null,
“echo”: false,
“removes”: null,
“responses”: {
“(?i)[sudo] password for vcf”: “xxxxxxxxxxxxxxxxxxxxx”
},
“timeout”: 30
}
},
“msg”: “Failed to import the required Python library (pexpect) on lab.local.com’s Python /usr/bin/python2.7. Please read module documentation and install in the appropriate location”
[root@6683ffa58609 cpc-vcf]# pip show pexpect
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Name: pexpect
Version: 4.8.0
Summary: Pexpect allows easy control of interactive console applications.
Home-page: https://pexpect.readthedocs.io/
Author: Noah Spurrier; Thomas Kluyver; Jeff Quast
Author-email: noah@noah.org, thomas@kluyver.me.uk, contact@jeffquast.com
License: ISC license
Location: /usr/lib/python2.7/site-packages
Requires: ptyprocess
Required-by:
[root@6683ffa58609 cpc-vcf]#