subscription-manager and yum commands are failing with Error: No module named 'requests'

Solution Verified - Updated -

Issue

  • subscription-manager and yum commands are throwing below error:-

    # subscription-manager list --available
    Unable to find Subscription Manager module.
    Error: No module named 'requests
    
    # yum install telnet
    Failed loading plugin "product-id": No module named 'requests'
    Failed loading plugin "subscription-manager": No module named 'requests'
    Failed loading plugin "upload-profile": No module named 'requests'
    

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Subscription Manager(RHSM)

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