Hi,
I just installed the SLC5 on a new machine with access to CERN AFS.
I set up the ROOT environment using ROOT from AFS as:
export ROOTSYS=/afs/cern.ch/sw/lcg/app/releases/ROOT/5.26.00/slc4_ia32_gcc34/root
export PATH=$PATH:${ROOTSYS}/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${ROOTSYS}/lib
export PYTHONPATH=${PYTHONPATH}:${ROOTSYS}/lib
ROOT itself is working perfectly, but then when I try to import ROOT inside Python, I get this error:
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.26.00/slc4_ia32_gcc34/root/lib/ROOT.py:86: RuntimeWarning: Python C API version mismatch for module libPyROOT: This Python has API version 1012, module libPyROOT has version 1013.
import libPyROOT as _root
The error is caused by the default python 2.4 installed with SLC5, I guess.
So I went to the ROOT site and I tried to install the ROOT RPM marked “for SLC5”, thinking that if it was SLC5 oriented it would be targeted for Python 2.4 …but I get the same error about the missing Python 2.5 lib
Now my question is:
How can I simply install ROOT+PyROOT over a standard SLC5 machine?
[maybe the RPM for SLC5 should be aware of the presence of Python 2.4 as default in SLC5…]
Maybe the easiest way is to use Python 2.5 from AFS, together with ROOT from AFS. What do you think?
And which env variables have I to set in order to use Python 2.5 from AFS, without removing the 2.4 from my machine?
Thanks a lot
Best regards,
Ric.