Red Hat Ansible Tower throws the exception `ModuleNotFoundError: No module named 'error'` when trying to update a GIT SCM

Solution Verified - Updated -

Issue

  • Red Hat Ansible Tower throws the exception below when trying to update a GIT SCM
  File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/ansible/config/manager.py", line 17, in <module>
    from yaml import load as yaml_load
  File "/var/lib/awx/venv/ansible/lib/python2.7/site-packages/yaml/__init__.py", line 2, in <module>
    from error import *
ModuleNotFoundError: No module named 'error'

Environment

  • Red Hat Ansible Tower 3.5+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content