Hi all,
I’m trying to import ROOT so that I can use it in a python file in VS Code.
The Python file contains the following code:
import sys, os
sys.path.append("/Applications/root_v6.28.00/")
sys.path.append("/Applications/root_v6.28.00/bin/")
sys.path.append("/Applications/root_v6.28.00/include/")
sys.path.append("/Applications/root_v6.28.00/lib/")
import ctypes
ctypes.cdll.LoadLibrary("/Applications/root_v6.28.00/lib//libCore.so")
ctypes.cdll.LoadLibrary("/Applications/root_v6.28.00/lib//libThread.so")
ctypes.cdll.LoadLibrary("/Applications/root_v6.28.00/lib//libTreePlayer.so")
import ROOT
When I run the code, I get this error:
Fatal in <TROOT::InitInterpreter>: cannot load library dlopen(/Users/divitrawal/root/lib/libCling.so, 0x0005): symbol not found in flat namespace '__Z4FormPKcz'
I’m not entirely sure what’s happening, so any help would be greatly appreciated!
ROOT Version: 6.28.00
Platform: MacOS Ventura 13.2
Compiler: Not Provided