rhn_register fails with "ImportError: No module named hardware_hal"

Solution Verified - Updated -

Issue

  • rhn_register fails with following traceback:
# rhn_register
Traceback (most recent call last):
File "/usr/sbin/rhn_register", line 26, in <module>
   from up2date_client import tui
File "/usr/share/rhn/up2date_client/tui.py", line 29, in <module>
   import rhnreg, hardware
File "/usr/share/rhn/up2date_client/rhnreg.py", line 22, in <module>
   import hardware
File "/usr/share/rhn/up2date_client/hardware.py", line 40, in <module>
   from hardware_hal import check_hal_dbus_status, get_hal_computer, read_hal
ImportError: No module named hardware_hal
  • We are getting following message in /var/log/messages
python: abrt: detected unhandled Python exception in /usr/share/rhn/up2date_client/hardware.py

Environment

  • Red Hat Enterprise Linux 6
  • rhn-client-tools

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