Why I Am Getting Error 'DistributionNotFound: urllib3>=VERSION' When Running Ansible Tower CLI (awx) Commands ?

Solution Verified - Updated -

Issue

When executing Ansible Tower CLI (awx) commands, the command is failing with the following traceback error:

Traceback (most recent call last):
  File "/bin/awx", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: urllib3>=1.21.1,<1.24

Environment

  • Ansible Tower 3.6+
  • Ansible Tower CLI (awx) 3.6+

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