The pexpect python module is required error even-though it is installed on host machine #21416
Labels
affects_2.2
This issue/PR affects Ansible v2.2
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
ISSUE TYPE
COMPONENT NAME
expect module
ANSIBLE VERSION
CONFIGURATION
Mention any settings you have changed/added/removed in ansible.cfg
(or using the ANSIBLE_* environment variables).
default
OS / ENVIRONMENT
Mention the OS you are running Ansible from, and the OS you are
managing, or say “N/A” for anything that is not platform-specific.
Host Machine: 2.6.32-431.23.3.el6.x86_64
Target Machine: 2.6.32-431.23.3.el6.x86_64
Python version on both machines: 2.6.6
pexpect installed on Host machine
pexpect NOT installed on host machine
SUMMARY
When using the expect module I get the "The pexpect python module is required" error message. I'm testing with just a simple expect command from the module documents.
This is puzzling because the documents clearly state that pexpect >3.3 is a requirement for Host machine. I have installed pexpect on Host machine and it imports successfully and I can use pexpect.run as well.
STEPS TO REPRODUCE
EXPECTED RESULTS
change pass
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: