I’m new to ansible and naively installed ansible in a python 3 virtualenv.
While running one of the first commands in the “Getting Started” documentation:
`
ansible all -m ping -vvv
`
I ran into an error with ansible 2.0.0.2’s use of “basestring”, just like this stackoverflow user:
http://stackoverflow.com/q/34803467/399726
And (as the answer points out) ansible’s docs indeed say that ansible is not compatible with Python 3 on control machines:
Python 3 is a slightly different language than Python 2 and most Python programs (including Ansible) are not switching over yet.
Yet I also noticed ansible’s devel branch is being tested against Python 3.4 and Python 3.5, with the exception of tests that are skipped because
Python 3 is not supported on targets (yet)
I tried installing the latest devel branch (2.1.0 instead of PyPI’s 2.0.0.2 ) into my python 3 virtualenv but ran into the same error.
Are there ways to install a particular branch of ansible or configure it to work with Python 3?
Is there a branch under development that is working towards broader Python 3 compatibility?
Thanks in advance for any possible clarification.