Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Has anybody ever encountered this wrong ELF class error? The failure is provided in more detail below:

[root@nocloud ~]# system-config-users
Traceback (most recent call last):
  File "/usr/share/system-config-users/", line 25, in ?
    import libuser
ImportError: /usr/lib/python2.4/site-packages/ wrong ELF class: ELFCLASS32

Can anybody tell me how I might possibly be able to fix this? It looks like python broke on my server.

share|improve this question

It looks like python is using libuser.i386 instead of libuser.x86_64. The error basically means python expected a 64-bit library but instead got a 32-bit library.

First, try installing libuser.x86_64, and try again ("yum install libuser.x86_64"). If that doesn't work, you may need to remove libuser.i386 and reinstall system-config-users.

share|improve this answer

I have figured out the solution to this. One can simply remove the file /usr/lib/python2.4/site-packages/ and then the OS will automatically use the correct one located here: /usr/lib64/python2.4/site-packages/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.