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

Solution Unverified - 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 v.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.