After updating my Mac OS to Monterey 12.3.1, I am unable to load ROOT in my python scripts. I checked that the ROOT is working fine. Python is also working fine and is present at following paths–
But somehow my script is reading ROOT at -
and giving the following error –
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/root/obj/lib/ROOT.py”, line 24, in
File “/usr/local/root/obj/lib/cppyy.py”, line 61, in
import libPyROOT as _backend
ImportError: dlopen(/usr/local/root/obj/lib/libPyROOT.so, 0x0002): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /usr/local/root/obj/lib/libPyROOT.so
Reason: tried: ‘/System/Library/Frameworks/Python.framework/Versions/2.7/Python’ (no such file)
– Paths in my bash_profile are –
export PATH="$PYENV_ROOT/bin:PATH" eval "(pyenv init --path)"
eval “$(pyenv init -)”
I am wondering if anybody is facing the same problem. Please help me to resolve this issue.