subscription-manager fails with 'Unable to find Subscription Manager module. Error: No module named version'

Solution Verified - Updated -

Issue

  • subscription-manager fails with 'Unable to find Subscription Manager module. Error: No module named version'
  • There is a pyhook report which contains a reason file like the following:
utils.py:43:<module>:ImportError: No module named version
  • There is not any corruption in subscription-manager package and a configuration of third party python.
# rpm -qVa subscription-manager python
S.5....T.  c /etc/rhsm/rhsm.conf

# which python
/usr/bin/python

# python -V
Python 2.6.6

# rpm -qf /usr/bin/python
python-2.6.6-66.el6_8.x86_64

# env | grep -i PATH
PATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7.0
  • Red Hat Enterprise Linux 8

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