The registration process via the Subscription Manager command encounters an error: "pkg_resources.DistributionNotFound: six."

Solution Verified - Updated -

Issue

  • When executing subscription-manager commands, an error traceback is observed:

    # subscription-manager refresh
    Traceback (most recent call last):
    File "/sbin/subscription-manager", line 5, in <module>
    from pkg_resources import load_entry_point
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
    working_set.require(__requires__)
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)   
    pkg_resources.DistributionNotFound: six   
    

Environment

Red Hat Enterprise Linux 7

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