I have a 64 bit RHEL host with 32 bit libraries installed. One vendor has a 32 bit .so I'd like to load into Python using ctypes.
from ctypes import CDLL
CDLL('32bitdinosaur.so')
OSError: 32bitdinosaur.so: wrong ELF class: ELFCLASS32
Of course 64 bit libraries are OK. Eg:
CDLL('libc.so.6')
Works fine.