Roots Discourse

No module named trellis.utils

trellis

#1

I am trying to deploy my project to remote but I am facing this error on running ansible-playbook command. I can’t seem to figure out what’s the issue.

here’s the stack trace

ansible-playbook 2.6.3
  config file = /media/rogue-one/Shared/devs/les-yetis/trellis/ansible.cfg
  configured module search path = [u'/home/rogue-one/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]
Using /media/rogue-one/Shared/devs/les-yetis/trellis/ansible.cfg as config file
Parsed /media/rogue-one/Shared/devs/les-yetis/trellis/hosts/development inventory source with ini plugin
Parsed /media/rogue-one/Shared/devs/les-yetis/trellis/hosts/production inventory source with ini plugin
Parsed /media/rogue-one/Shared/devs/les-yetis/trellis/hosts/staging inventory source with ini plugin
statically imported: /media/rogue-one/Shared/devs/les-yetis/trellis/roles/deploy/tasks/initialize.yml
statically imported: /media/rogue-one/Shared/devs/les-yetis/trellis/roles/deploy/tasks/update.yml
statically imported: /media/rogue-one/Shared/devs/les-yetis/trellis/roles/deploy/tasks/prepare.yml
statically imported: /media/rogue-one/Shared/devs/les-yetis/trellis/roles/deploy/tasks/build.yml
statically imported: /media/rogue-one/Shared/devs/les-yetis/trellis/roles/deploy/tasks/share.yml
statically imported: /media/rogue-one/Shared/devs/les-yetis/trellis/roles/deploy/tasks/finalize.yml
ERROR! Unexpected Exception, this is probably a bug: No module named trellis.utils
the full traceback was:

Traceback (most recent call last):
  File "/usr/bin/ansible-playbook", line 118, in <module>
    exit_code = cli.run()
  File "/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py", line 122, in run
    results = pbex.run()
  File "/usr/lib/python2.7/dist-packages/ansible/executor/playbook_executor.py", line 89, in run
    self._tqm.load_callbacks()
  File "/usr/lib/python2.7/dist-packages/ansible/executor/task_queue_manager.py", line 182, in load_callbacks
    self._stdout_callback = callback_loader.get(self._stdout_callback)
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/loader.py", line 378, in get
    self._module_cache[path] = self._load_module_source(name, path)
  File "/usr/lib/python2.7/dist-packages/ansible/plugins/loader.py", line 357, in _load_module_source
    module = imp.load_source(full_name, path, module_file)
  File "/media/rogue-one/Shared/devs/les-yetis/trellis/lib/trellis/plugins/callback/output.py", line 16, in <module>
    from trellis.utils import output as output
ImportError: No module named trellis.utils

How do I resolve the issue??


#2

Install Ansible 2.5.3


#3

no success… installing 2.5.3… still getting the same error