Hi,
I have ROOT installed to work with the CINT interpreter, but I was unable to use pyroot (Python doesn’t know any root module).
I found on the webpage about pyroot I should be using this:
Which I did (./configure --enable-python)
I then did the make install again and everything was installed.
Afterwards, root was still unable to be imported in root, so I just manually copied the ROOT.py and libPyROOT.so to the lib folder.
I am now able to import classes from ROOT in python, however, I get the following errors:
from ROOT import TH2D
Error in TSystem::ExpandFileName : input: /usr/bin/g++, output: /usr/bin/g++
Error in TSystem::ExpandFileName : input: /usr/bin/python, output: /usr/bin/python
Error in TSystem::ExpandFileName : input: /usr/lib/libvectorDict.so, output: /usr/lib/libvectorDict.so
Error in TSystem::ExpandFileName : input: /usr/lib/libMathCore.so, output: /usr/lib/libMathCore.so
Error in TSystem::ExpandFileName : input: /usr/lib/libMatrix.so, output: /usr/lib/libMatrix.so
Error in TSystem::ExpandFileName : input: /usr/lib/libHist.so, output: /usr/lib/libHist.so
hist=TH2D(“hist”, “hist”, 100, 0, 10, 100, 0, 10)
hist.Draw()
Error in TSystem::ExpandFileName : input: /usr/lib/libMathCore.so, output: /usr/lib/libMathCore.so
Error in TSystem::ExpandFileName : input: /usr/lib/libHist.so, output: /usr/lib/libHist.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGraf.so, output: /usr/lib/libGraf.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGpad.so, output: /usr/lib/libGpad.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGX11.so, output: /usr/lib/libGX11.so
Error in TSystem::ExpandFileName : input: /usr/lib/libMathCore.so, output: /usr/lib/libMathCore.so
Error in TSystem::ExpandFileName : input: /usr/lib/libRIO.so, output: /usr/lib/libRIO.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGraf.so, output: /usr/lib/libGraf.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGpad.so, output: /usr/lib/libGpad.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGui.so, output: /usr/lib/libGui.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGraf.so, output: /usr/lib/libGraf.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGX11.so, output: /usr/lib/libGX11.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGX11TTF.so, output: /usr/lib/libGX11TTF.so
Info in TCanvas::MakeDefCanvas : created default TCanvas with name c1
Error in TSystem::ExpandFileName : input: /usr/lib/libGpad.so, output: /usr/lib/libGpad.so
Error in TSystem::ExpandFileName : input: /usr/lib/libMathCore.so, output: /usr/lib/libMathCore.so
Error in TSystem::ExpandFileName : input: /usr/lib/libMatrix.so, output: /usr/lib/libMatrix.so
Error in TSystem::ExpandFileName : input: /usr/lib/libHist.so, output: /usr/lib/libHist.so
Error in TSystem::ExpandFileName : input: /usr/lib/libGraf.so, output: /usr/lib/libGraf.so
Error in TSystem::ExpandFileName : input: /usr/lib/libHistPainter.so, output: /usr/lib/libHistPainter.so
I guess there’s still something wrong, even though everything seems to be working as it should (for instance, this TH2D is drawn and it looks ok).
Can anyone tell me how I can get rid of these errors?
Thank you,
Jonathan
Danilo
April 23, 2014, 8:25pm
2
Hi Jonathan,
I think that a full reproducer is needed here.
Best,
Danilo
wlav
April 24, 2014, 1:05am
3
Jonathan,
which envars did you set? Seems that at least $ROOTSYS is missing.
The easiest is to, after install, “source bin/thisroot.sh” (or thisroot.csh, if you use a shell from the csh family) which sets up ROOTSYS and all its friends.
Cheers,
Wim