# ansible-test refuses to run, citing Python 2.7 is not supported

**URL:** <https://forum.ansible.com/t/ansible-test-refuses-to-run-citing-python-2-7-is-not-supported/30554>\
**Category:** Ansible Project\
**Created:** [June 12, 2019, 11:09pm UTC](https://forum.ansible.com/t/ansible-test-refuses-to-run-citing-python-2-7-is-not-supported/30554 "2019-06-12T23:09:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evanmc](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@evanmc](https://forum.ansible.com/u/evanmc)\
**Post date:** [June 12, 2019, 11:09pm UTC](https://forum.ansible.com/t/ansible-test-refuses-to-run-citing-python-2-7-is-not-supported/30554/1 "2019-06-12T23:09:48Z")

</div>

I can’t seem to get ansible-test to work with Python 2.7. Any ideas?

ansible-test sanity -vvv --docker --python 2.7 --test validate-modules

… omitted …

OME=/root  
LC\_ALL=en\_US.UTF-8  
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin  
Sanity check using validate-modules  
WARNING: Skipping validate-modules on unsupported Python version 2.7.  
No tests applicable.  
WARNING: Reviewing previous 1 warning(s):  
WARNING: Skipping validate-modules on unsupported Python version 2.7.  
Run command: docker exec ed8d171ede4a30af1ade4f777ea9fd983f0a3cae1e968b2643f46f7fb1ccbe04 tar czf /root/results.tgz -C …  
Working directory: /home/emcginnis/workspace/ansible-testing/ansible  
Program found: /usr/bin/docker  
HOME=/home/emcginnis

Except it’s not just 2.7, although that is what I am using. If I specify 2.6 above, I get the same thing.

-Evan0

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [June 13, 2019, 2:25pm UTC](https://forum.ansible.com/t/ansible-test-refuses-to-run-citing-python-2-7-is-not-supported/30554/2 "2019-06-13T14:25:45Z")

</div>

validate-modules now only works on Python 3.5+
