ROOT.py

Hi all,

I try to install MadAnalysis package which is linked to root but it gives me the following error:

  • ERROR: ROOT file called ‘ROOT.py’ not found. Please check that ROOT is properly installed.

On root when I type:
gSystem->Load(“libPyROOT”)

It works well but when I type
gSystem->Load(“lROOT.py”) it gives

Error in TUnixSystem::DynamicPathName: ROOT.py[.so | .dll | .dylib | .sl | .dl | .a] does not exist in /home/safi/SCience/root/lib:/lib::.::/usr/lib/i386-linux-gnu/root5.34:/usr/lib/i386-linux-gnu/root5.34/cint/stl

Any help about this ? The strange thing is that when make
$locate ROOT.py , I find it at "/home/safi/SCience/root/bindings/pyroot/ROOT.py"
and “/usr/lib/i386-linux-gnu/root5.34/ROOT.py”

Regards,
Safinaz

Hi,

not familiar with MadAnalysis, but the normally, ROOT.py gets installed in $ROOTSYS/lib and that directory is then added to the PYTHONPATH envar.

Presumably, adding /usr/lib/i386-linux-gnu/root5.34 to PYTHONPATH should work for you then.

Cheers,
Wim

Thanks

I added /usr/lib/i386-linux-gnu/root5.34 to PYTHONPATH by …

export PYTHONPATH=$PYTHONPATH:/usr/lib/i386-linux-gnu/root5.34

and for LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/i386-linux-gnu/root5.34

and MadAnalysis working now

Bests,
Safinaz