Error Msg: The pexpect python module is required

325 views
Skip to first unread message

neha gupta

unread,
Nov 28, 2016, 7:05:57 PM11/28/16
to Ansible Project
Hi 

I am using ansible (version 2.2) for installing a software, where I require "expect" to be used. I have installed the pexpect module (version 4.2) and Python (version 2.7) in the local and remote server.
However, on running ansible script, getting following error:

   "module_name": "expect" 

   "msg": "The pexpect python module is required"


Please help.

Regards
Neha

Pavel Voinov

unread,
Jan 24, 2017, 6:31:35 PM1/24/17
to Ansible Project
I have similar problem but with a bit different outcome:

Insufficient version of pexpect installed (4.2.1), this module requires pexpect>=3.3. Error was 'int' object has no attribute 'rstrip'"

Ansible version: 2.2.0.0
pexpect version: 4.2.1 (definitely greater than 3.3).

Matt Martz

unread,
Jan 24, 2017, 6:40:01 PM1/24/17
to ansible...@googlegroups.com
I'm guessing you are trying to supply an integer as one of the responses, try quoting it like "1"

--
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-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/22215f7e-add9-481e-85ae-d13b89973e60%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages