pyROOT on lxplus: difficulties

Dear experts,

I’m trying to use pyROOT on lxplus (I’m using bash)

export ROOTSYS=/afs/cern.ch/sw/root/v5.10.00/slc3_gcc3.2.3/root/
export PATH=$PATH:$ROOTSYS/bin
export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH

python
import ROOT
ImportError: /afs/cern.ch/sw/root/v5.10.00/slc3_gcc3.2.3/root/lib/libPyROOT.so:
cannot open shared object file: No such file or directory

but the file exists!
ls -l /afs/cern.ch/sw/root/v5.10.00/slc3_gcc3.2.3/root/lib/libPyROOT.so
-rwxr-xr-x 1 brun vp 479556 Mar 2 2006
/afs/cern.ch/sw/root/v5.10.00/slc3_gcc3.2.3/root/lib/libPyROOT.so

Cheers,
Ruggero

Hi,

as far as I know none of the lxplus nodes is slc3. The python binary you use is incompatible with teh ROOT version you have selected.

Cheers, Axel.

[quote=“Axel”]Hi,

as far as I know none of the lxplus nodes is slc3. The python binary you use is incompatible with teh ROOT version you have selected.

Cheers, Axel.[/quote]

Yes, you are right, but I followed istruction from:

wlav.web.cern.ch/wlav/pyroot/installation.html

it says:
where ROOTSYS should be set to /afs/cern.ch/sw/root///root

but the only available platform is slc3_gcc3.2.3

[quote=“wiso”][quote=“Axel”]Hi,

as far as I know none of the lxplus nodes is slc3. The python binary you use is incompatible with teh ROOT version you have selected.

Cheers, Axel.[/quote]

Yes, you are right, but I followed istruction from:

wlav.web.cern.ch/wlav/pyroot/installation.html

it says:
where ROOTSYS should be set to /afs/cern.ch/sw/root///root

but the only available platform is slc3_gcc3.2.3[/quote]

I tried also with

export ROOTSYS=/afs/cern.ch/sw/lcg/app/releases/ROOT/5.26.00b/slc4_amd64_gcc34/root

but the result is the same

Hi,

platform, ROOT version, and python version all need to match. The 64b 5.26 build of ROOT that you selected uses p2.5, so a matching python installation could for example be:

/afs/cern.ch/sw/lcg/external/Python/2.5.4p2/slc4_amd64_gcc34

Cheers,
Wim

[quote=“wlav”]Hi,

platform, ROOT version, and python version all need to match. The 64b 5.26 build of ROOT that you selected uses p2.5, so a matching python installation could for example be:

/afs/cern.ch/sw/lcg/external/Python/2.5.4p2/slc4_amd64_gcc34

Cheers,
Wim[/quote]

Ok thanks, I think this is the problem. How to fix it?

Hi,

I’m not following … what is the problem?

Cheers,
Wim

[quote=“wlav”]Hi,

I’m not following … what is the problem?

Cheers,
Wim[/quote]

By default on lxplus python is python 2.3.4 (with my configuration). How can I change it? Which variable I have to change?

Hi,

so assuming that ‘/afs/cern.ch/sw/lcg/external/Python/2.5.4p2/slc4_amd64_gcc34’ is the installation you want, add its bin directory to PATH and its lib directory to LD_LIBRARY_PATH. E.g., assuming zsh:

export PATH=/afs/cern.ch/sw/lcg/external/Python/2.5.4p2/slc4_amd64_gcc34/bin:$PATH export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/external/Python/2.5.4p2/slc4_amd64_gcc34/lib:$LD_LIBRARY_PATH
Cheers,
Wim

[quote=“wlav”]Hi,

so assuming that ‘/afs/cern.ch/sw/lcg/external/Python/2.5.4p2/slc4_amd64_gcc34’ is the installation you want, add its bin directory to PATH and its lib directory to LD_LIBRARY_PATH. E.g., assuming zsh:

export PATH=/afs/cern.ch/sw/lcg/external/Python/2.5.4p2/slc4_amd64_gcc34/bin:$PATH export LD_LIBRARY_PATH=/afs/cern.ch/sw/lcg/external/Python/2.5.4p2/slc4_amd64_gcc34/lib:$LD_LIBRARY_PATH
Cheers,
Wim[/quote]

Thank you very much, everythings ok now