Hi !
I’ve installed Root on my computer and it works fine, so does Pyroot.
However, when I try to use jupyter notebook with root, it does not work.
I would really appreciate it if you could help me, please.
I’ve follow what is written here : HowTo_ROOT-Notebooks but when I enter the command “import ROOT” in jupyter notebook, it does not work.
The error message is : ImportError: Failed to import libcppyy3_8. Please check that ROOT has been built for Python 3.8
Here is the whole message :
ImportError Traceback (most recent call last)
C:\root\bin\cppyy_init_.py in
59 try:
—> 60 importlib.import_module(libcppyy_mod_name)
61 except ImportError:
~\anaconda3\new\lib\importlib_init_.py in import_module(name, package)
126 level += 1
→ 127 return _bootstrap._gcd_import(name[level:], package, level)
128
~\anaconda3\new\lib\importlib_bootstrap.py in _gcd_import(name, package, level)
~\anaconda3\new\lib\importlib_bootstrap.py in find_and_load(name, import)
~\anaconda3\new\lib\importlib_bootstrap.py in find_and_load_unlocked(name, import)
~\anaconda3\new\lib\importlib_bootstrap.py in _load_unlocked(spec)
~\anaconda3\new\lib\importlib_bootstrap.py in module_from_spec(spec)
~\anaconda3\new\lib\importlib_bootstrap_external.py in create_module(self, spec)
~\anaconda3\new\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)
ImportError: DLL load failed while importing libcppyy3_8: %1 n’est pas une application Win32 valide.
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
in
----> 1 import ROOT
C:\root\bin\ROOT_init_.py in
20 environ[‘CPPYY_NO_ROOT_FILTER’] = ‘1’
21
—> 22 import cppyy
23 if not ‘ROOTSYS’ in environ:
24 # Revert setting made by cppyy
C:\root\bin\cppyy_init_.py in
60 importlib.import_module(libcppyy_mod_name)
61 except ImportError:
—> 62 raise ImportError(
63 ‘Failed to import {}. Please check that ROOT has been built for Python {}.{}’.format(
64 libcppyy_mod_name, major, minor))
ImportError: Failed to import libcppyy3_8. Please check that ROOT has been built for Python 3.8
Thank you very much for your help !