Error when trying to register client machine "ImportError: /usr/lib/python2.4/site-packages/dmidecodemod.so: wrong ELF class: ELFCLASS32"

Solution Verified - Updated -

Issue

  • When trying to register a Red Hat Enterprise Linux 5.8(x86_64) machine, it failed with following error message.
File "/usr/sbin/rhnreg_ks", line 29, in ?
    from up2date_client import rhnreg
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 24, in ?
    import hardware
  File "/usr/share/rhn/up2date_client/hardware.py", line 26, in ?
    import dmidecode
  File "/usr/lib/python2.4/site-packages/dmidecode.py", line 29, in ?
    from dmidecodemod import *
ImportError: /usr/lib/python2.4/site-packages/dmidecodemod.so: wrong ELF class: ELFCLASS32

Environment

  • Red Hat Enterprise Linux 5.8(x86_64)
  • python-dmidecode-3.10.13-1.el5_5.1.i386
  • libxml2-python-2.6.26-2.1.15.el5_8.2.i386

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