not a debian expert here, but can you check where ROOT.py and libPyROOT.so are located underneath the ROOT installation? Presumably $ROOTSYS is still set? Once found, are those modules locatable through PYTHONPATH?
I faced same problem. I just tried to install PyROOT and I am a newcomer to it. I edit my ~/.bashrc file and add $PYTHONPATH to /home/rik/root/bindings/pyroot/ROOT.py (location of ROOT.py) and got same error. Can anyone help me how to overcome this?
Also, please guide me how to enabled PyROOT properly with ROOT?
Hi,
Thanks for your reply!
I download it from git repository and then compile it with python 2.7.14 and root 6.10.08…
configure it by
./configure linux --enable-python --with-python-incdir=/usr/include/python2.7/ --with-python-libdir=/usr/lib/ and then make & make install…finally edit ~/.bashrc file…
But still got the message when I write
from ROOT import *
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named ROOT
I don’t understand I am doing right or wrong for pyroot…can you please guide me as I am new to Pyroot…
add $PYTHONPATH to /home/rik/root/bindings/pyroot/ROOT.py
not sure how to parse the above sentence … I presume first of all in the above that you mean the reverse, but also you want the path to the file in the PYTHONPATH envar, not the file itself. Further, the above looks like it points to the sources, not the installation. You want the latter.
In sum, $ROOTSYS/lib is what should be in PYTHONPATH.