brew install python3
python3 --version
Python 3.6.3
sudo -H pip3 install ansible
ansible-galaxy install tecris.maven -vvv
ansible-galaxy 2.4.0.0
config file = None
configured module search path = ['/Users/bob/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible-galaxy
python version = 3.6.3 (default, Oct 13 2017, 15:50:37) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]
No config file found; using defaults
Opened /Users/bob/.ansible_galaxy
Processing role tecris.maven
Opened /Users/bob/.ansible_galaxy
- downloading role 'maven', owned by tecris
https://galaxy.ansible.com/api/v1/roles/?owner__username=tecris&name=maven
https://galaxy.ansible.com/api/v1/roles/7576/versions/?page_size=50
ERROR! Unexpected Exception, this is probably a bug: '<' not supported between instances of 'int' and 'str'
the full traceback was:
Traceback (most recent call last):
File "/usr/local/bin/ansible-galaxy", line 106, in <module>
exit_code = cli.run()
File "/usr/local/lib/python3.6/site-packages/ansible/cli/galaxy.py", line 150, in run
self.execute()
File "/usr/local/lib/python3.6/site-packages/ansible/cli/__init__.py", line 154, in execute
fn()
File "/usr/local/lib/python3.6/site-packages/ansible/cli/galaxy.py", line 392, in execute_install
installed = role.install()
File "/usr/local/lib/python3.6/site-packages/ansible/galaxy/role.py", line 236, in install
loose_versions.sort()
File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/version.py", line 52, in __lt__
c = self._cmp(other)
File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/version.py", line 337, in _cmp
if self.version < other.version:
TypeError: '<' not supported between instances of 'int' and 'str'