AttributeError: 'module' object has no attribute 'get_warnings' in subscription-manager command

Solution Verified - Updated -


The registration with subscription-manager command failed with the following error:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 1389, in _do_command
  File "/usr/lib64/python2.7/site-packages/rhsmlib/services/", line 66, in register
    facts_dict = self.facts.get_facts()
  File "/usr/lib64/python2.7/site-packages/subscription_manager/", line 78, in get_facts
    facts = collector.get_all()
  File "/usr/lib64/python2.7/site-packages/rhsmlib/facts/", line 35, in get_all
  File "/usr/lib64/python2.7/site-packages/rhsmlib/facts/", line 56, in get_all
    firmware_info_dict = firmware_collector.get_all()
  File "/usr/lib64/python2.7/site-packages/rhsmlib/facts/", line 69, in get_all
    firmware_info = self.get_firmware_info()
  File "/usr/lib64/python2.7/site-packages/rhsmlib/facts/", line 62, in get_firmware_info
    firmware_info_dict = firmware_info_collector.get_all()
  File "/usr/lib64/python2.7/site-packages/rhsmlib/facts/", line 93, in get_all
  File "/usr/lib64/python2.7/site-packages/rhsmlib/facts/", line 128, in log_warnings
    dmiwarnings = dmidecode.get_warnings()
AttributeError: 'module' object has no attribute 'get_warnings'


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