# Insufficient version of pexpect installed (2.3), this module requires pexpect\>=3.3

**URL:** <https://forum.ansible.com/t/insufficient-version-of-pexpect-installed-2-3-this-module-requires-pexpect-3-3/37951>\
**Category:** Ansible Project\
**Created:** [May 2, 2023, 11:38am UTC](https://forum.ansible.com/t/insufficient-version-of-pexpect-installed-2-3-this-module-requires-pexpect-3-3/37951 "2023-05-02T11:38:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aokullu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/aokullu/32/458_2.png) [@aokullu](https://forum.ansible.com/u/aokullu)\
**Post date:** [May 2, 2023, 11:38am UTC](https://forum.ansible.com/t/insufficient-version-of-pexpect-installed-2-3-this-module-requires-pexpect-3-3/37951/1 "2023-05-02T11:38:24Z")

</div>

Dear members,  
am having some issues executing expect and getting this error when i run my ansible playbook

Insufficient version of pexpect installed (2.3), this module requires pexpect\>=3.3  
fatal: [XXXXXXXXX]: FAILED! =\> {“changed”: false, “msg”: “Insufficient version of pexpect installed (2.3), this module requires pexpect\>=3.3. Error was ‘module’ object has no attribute ‘\_run’”}  
…ignoring

How can I have this resolved?

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [May 2, 2023, 12:22pm UTC](https://forum.ansible.com/t/insufficient-version-of-pexpect-installed-2-3-this-module-requires-pexpect-3-3/37951/2 "2023-05-02T12:22:57Z")

</div>

The error is pretty clear - make sure the host has pexpect 3.3 or greater installed.  
This is also stated in the docs of the module: [https://docs.ansible.com/ansible/latest/collections/ansible/builtin/expect\_module.html#requirements](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/expect_module.html#requirements)
