I installed ROOT from the system repository in Fedora. Now, while trying to use pyROOT for the first time, I encounter an issue as the line
import ROOT
from a python3 jupyter-notebook instance fails with the following error message:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-ee8dc4376aa8> in <module>
----> 1 import ROOT
/usr/lib64/python3.7/site-packages/ROOT.py in <module>
830 ip = get_ipython()
831 if hasattr(ip,"kernel"):
--> 832 import JupyROOT
833 import JsMVA
834
/usr/lib64/python3.7/site-packages/ROOT.py in _importhook(name, *args, **kwds)
529 except Exception:
530 pass
--> 531 return _orig_ihook( name, *args, **kwds )
532
533 __builtin__.__import__ = _importhook
ModuleNotFoundError: No module named 'JupyROOT'
How do I have to setup ROOT in order to provide the required prerequisites - is it necessary to build ROOT from source in order to enable python bindings?
It seems PyROOT is installed there (at least ROOT.py), but JupyROOT is not found. Can you confirm there is no subdirectory called JupyROOT in that directory?
On the other hand, where is the rest of ROOT installed? Perhaps @amadio knows how the Fedora ROOT package works and where JupyROOT is supposed to be installed.
On the other hand, I understand you are using PyROOT from IPython or from a Jupyter notebook. If you use just the Python prompt, it will not even try to import JupyROOT and you should not see the error.