Exception: 'module' object has no attribute 'role_spec_parse'

When running ‘ansible-galaxy install -r requirements.yml’ during the Trellis setup process, I got the exception below. Is this critical? Something wrong with my environment configuration? I couldn’t find anything on the Google. Thanks.

- mailhog was installed successfully
Unexpected Exception: 'module' object has no attribute 'role_spec_parse'
the full traceback was:

Traceback (most recent call last):
  File "/Users/cbarrett/SpiderOak Hive/webdev/ansible/bin/ansible-galaxy", line 79, in <module>
  File "/Users/cbarrett/SpiderOak Hive/webdev/ansible/lib/ansible/cli/galaxy.py", line 125, in run
  File "/Users/cbarrett/SpiderOak Hive/webdev/ansible/lib/ansible/cli/__init__.py", line 97, in execute
  File "/Users/cbarrett/SpiderOak Hive/webdev/ansible/lib/ansible/cli/galaxy.py", line 454, in execute_install
    dep = ansible.utils.role_spec_parse(dep)
AttributeError: 'module' object has no attribute 'role_spec_parse'

What version of Ansible? ansible-playbook --version

ansible-playbook 2.0.0
  config file = /Users/cbarrett/SpiderOak Hive/webdev/trellis/ansible.cfg
  configured module search path = None


2.0.0 isn’t out yet. It’s an alpha release so you need the latest stable release of 1.9.2

1 Like

perfect, that was the problem. thanks.