rhsmd cron failing with ImportError: cannot import name Versions

Solution Unverified - Updated -

Issue

/etc/cron.daily/rhsmd failing with ImportError: cannot import name Versions

Traceback (most recent call last):
  File "/usr/libexec/rhsmd", line 33, in <module>
    from subscription_manager.injectioninit import init_dep_injection
  File "/usr/share/rhsm/subscription_manager/injectioninit.py", line 23, in <module>
    from subscription_manager.cp_provider import CPProvider
  File "/usr/share/rhsm/subscription_manager/cp_provider.py", line 16, in <module>
    from subscription_manager.utils import remove_scheme
  File "/usr/share/rhsm/subscription_manager/utils.py", line 32, in <module>
    from rhsm.version import Versions
ImportError: cannot import name Versions

Environment

  • Red Hat Enterprise Linux 6.7
  • Red Hat Enterprise Linux 6.8

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