# Ansible does not support python2.5 now?

**URL:** <https://forum.ansible.com/t/ansible-does-not-support-python2-5-now/11445>\
**Category:** Ansible Project\
**Created:** [April 25, 2012, 1:29pm UTC](https://forum.ansible.com/t/ansible-does-not-support-python2-5-now/11445 "2012-04-25T13:29:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinningstar](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@shinningstar](https://forum.ansible.com/u/shinningstar)\
**Post date:** [April 25, 2012, 1:29pm UTC](https://forum.ansible.com/t/ansible-does-not-support-python2-5-now/11445/1 "2012-04-25T13:29:01Z")

</div>

The newest code seems not to support python2.5 now. In lib/ansible/  
util.py, for example, it needs to import methondcaller from operator  
module which is new in python 2.6. Is that true?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [April 25, 2012, 2:53pm UTC](https://forum.ansible.com/t/ansible-does-not-support-python2-5-now/11445/2 "2012-04-25T14:53:34Z")

</div>

True, on the machine with ansible installed (not the nodes), it requires 2.6… there need to be some patches made to upgrade this.

There is also the usage of the warnings module somewhere.

Patches welcome. I would be ok with the options not being sorted on lower than 2.6, for instance, and even having the warnings code  
not run.

---

<div class="post-metadata">

**Author:** ![Art\_Zemon](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Art\_Zemon](https://forum.ansible.com/u/Art_Zemon)\
**Post date:** [April 25, 2012, 3:17pm UTC](https://forum.ansible.com/t/ansible-does-not-support-python2-5-now/11445/3 "2012-04-25T15:17:00Z")

</div>

This is a strong plea to keep the code that gets pushed to the client  
machines running on Python 2.5. We manage several dozen machines with  
Ubuntu 8.04, which has Python 2.5, and will have to keep them running  
for most of the next year.

The overlord machine has Python 2.6 so no worries there.

&nbsp;&nbsp;&nbsp;&nbsp;-- Art Z.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [April 25, 2012, 3:40pm UTC](https://forum.ansible.com/t/ansible-does-not-support-python2-5-now/11445/4 "2012-04-25T15:40:41Z")

</div>

Managed machines (client is such confusing terminology) already support 2.4 and up.

For /usr/bin/ansible I am strongly favoring requiring 2.6, so that we can use modern language features.

Finding a RHEL 6 or Fedora or … anything VM to run ansible on shouldn’t be a problem.

My Mac also has 2.6

Plus it clarifies the docs nicely.
