# Python error with ansible

**URL:** <https://forum.ansible.com/t/python-error-with-ansible/28861>\
**Category:** Ansible Project\
**Created:** [October 24, 2018, 9:20am UTC](https://forum.ansible.com/t/python-error-with-ansible/28861 "2018-10-24T09:20:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juraj\_Papic1](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Juraj\_Papic1](https://forum.ansible.com/u/Juraj_Papic1)\
**Post date:** [October 24, 2018, 9:20am UTC](https://forum.ansible.com/t/python-error-with-ansible/28861/1 "2018-10-24T09:20:22Z")

</div>

Hi all,

getting the error **"The Python 2 bindings for are needed for this module. If you require Python 3 support use the Ansible module instead**."

2.5.4  
file = ///ansible.cfg  
module search path = [u’/home///plugins/modules’, ‘/usr/share//plugins/modules’]  
python module location = /usr/local/lib/python27/-packages/  
location = /usr/local/bin/  
version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

python2-glance- python2-migrate python2–checker python3  
python2 python2- python2-migrate-repository python2- python35  
python27 python2-keystone python2–config-generator python2- python35m  
python2-alembic python2–wrapper python2–messaging–broker python2-unit2 python3m

All this is from the server I’m running Ansible.

Thanks.

---

<div class="post-metadata">

**Author:** ![Khanh\_Nguyen\_Duc](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@Khanh\_Nguyen\_Duc](https://forum.ansible.com/u/Khanh_Nguyen_Duc)\
**Post date:** [October 17, 2020, 11:09am UTC](https://forum.ansible.com/t/python-error-with-ansible/28861/2 "2020-10-17T11:09:59Z")

</div>

me, too, how can solve this ?

Vào lúc 16:20:23 UTC+7 ngày Thứ Tư, 24 tháng 10, 2018, Tcpip đã viết:
