Wrong ELF class error

I am executing a script that makes a call to pyroot and I get this error:

Traceback (most recent call last):
File “Template_Generation.py”, line 15, in
from ROOT import *
File “ROOT/v5.20.00-gl3/gcc34/lib/ROOT.py”, line 85, in
import libPyROOT as _root
ImportError: ROOT/pro/root/lib/libPyROOT.so: wrong ELF class: ELFCLASS32
Any ideas?

Hi,

You must be using a python compiled in 64 bits mode while your version of ROOT is compiled in 32 bits mode.

Cheers,
Philippe.

So is my only option to make them compatible?

Yes.

Philippe.

I.e. either use a 32 bit python or a 64 python root.