Pyroot does not run on lxplus

Dear ROOT expert:

I have added the configuration into .bashrc:

source /afs/cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5/setup.sh
source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.04/x86_64-slc5-gcc43-opt/root/bin/thisroot.sh

export PATH=$ROOTSYS/bin:$PYTHONDIR/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH

But the following error still appeared:

[lxplus252] /afs/cern.ch/user/q/qing > python train.py
Traceback (most recent call last):
File “train.py”, line 1, in ?
from ROOT import *
File “/afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.04/x86_64-slc5-gcc43-opt/root/lib/ROOT.py”, line 86, in ?
import libPyROOT as _root
ImportError: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.04/x86_64-slc5-gcc43-opt/root/lib/libPyROOT.so: wrong ELF class: ELFCLASS64

Any idea on this?

Thanks,Gang

Gang,

you’ve setup both a 32b python and a 64b release. I note that you add “$PYTHONDIR/bin” to PATH. What is PYTHONDIR, and does it point to a 32b python perhaps?

Cheers,
Wim

wrong thread…

Explanation for Charles Plager: I have posted something here, then realized that I’ve posted to a wrong thread, and my post does not make sense in this context. So, I’ve removed the text and put a disclaimer because I did not see an option to delete the post altogether. :smiley: