Why am I receiving the error message "cannot import name '_psutil_linux' from partially initialized module 'psutil'" when launching jobs within Ansible Tower?

Solution Verified - Updated -

Issue

  • Error message is thrown when running any job within Ansible Tower.

    ERROR! Unexpected Exception, this is probably a bug: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (/var/lib/awx/venv/ansible/lib/python3.6/site-packages/psutil/__init__.py)
    

Environment

  • Red Hat Enterprise Linux 8
  • Ansible Tower 3.8
  • Ansible Automation Platform 1.2

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