rhsmd cron が失敗し ImportError: cannot import name Versions エラーが発生する

Solution Unverified - Updated -

Issue

/etc/cron.daily/rhsmd が失敗し、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