If you’ve compiled ROOT to use python, you need to find out if it’s working correctly. The following code will do that:

root [0] gSystem->Load("libPyROOT")
root [1] TPython::Exec("print 1+1")

Then to check that you can load ROOT into python, try:

[ ~]$ python
Python 2.7.7 (default, Jun 23 2014, 13:28:36) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> import BAD_LIBRARY
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named BAD_LIBRARY

We didn’t get any errors when loading ROOT, that’s what we wanted.