Hi everyone,
I am having issues when importing PyROOT within a Jupiter notebook opened in Visual Studio Code. The stack trace is the following:
RuntimeError Traceback (most recent call last)
/var/folders/rc/xzc2ckrd3v36016q3zr884vc0000gr/T/ipykernel_33363/3488689890.py in <module>
1 import numpy as np
----> 2 import ROOT
3 from matplotlib.ticker import (MultipleLocator, FormatStrFormatter,AutoMinorLocator)
~/root-6.24.02-install/lib/ROOT/__init__.py in <module>
20 environ['CPPYY_NO_ROOT_FILTER'] = '1'
21
---> 22 import cppyy
23 if not 'ROOTSYS' in environ:
24 # Revert setting made by cppyy
~/root-6.24.02-install/lib/cppyy/__init__.py in <module>
129 from ._pypy_cppyy import *
130 else:
--> 131 from ._cpython_cppyy import *
132 if clean_cbl:
133 del os.environ['CPPYY_BACKEND_LIBRARY'] # we set it, so clean it
~/root-6.24.02-install/lib/cppyy/_cpython_cppyy.py in <module>
16 # first load the dependency libraries of the backend, then pull in the
17 # libcppyy extension module
---> 18 c = loader.load_cpp_backend()
...
---> 74 raise RuntimeError("could not load cppyy_backend library")
75
76 return c
RuntimeError: could not load cppyy_backend library
If I open Jupiter notebook on the internet, PyROOT is correctly working, while it doesn’t when opened within Visual Studio. Is someone able to help me ?
Thank you in advance
ROOT Version: 6.24.02
Platform: Mac OS Big Sur 11.6.4
Compiler: g++