Hi I have problems importing ROOT in any python script.
I did make this to solve the problem:
import sys
sys.path.append(“path/root_install/”)
sys.path.append(“path/root_install/bin”)
sys.path.append(“path/root_install/include”)
sys.path.append(“path/root_install/lib”)
import ctypes
ctypes.cdll.LoadLibrary(‘path/root_install/lib/libCore.so’
ctypes.cdll.LoadLibrary(‘path/root_install/lib/libThread.so’)
ctypes.cdll.LoadLibrary(‘path/root_install/lib/libTreePlayer.so’)
import ROOT
and it does import ROOT, but if I dare to use any ROOT’s class like TH1D it can’t find any module.
Do I have to reinstall root? And if the answer is yes, how do I do that in order to use pyroot?