'TMVA' has no attribute 'PyMethodBase'

When I try running ClassificaionKeras.py given in root 6.08 tutorials/ folder (also attached) I get the following output:

Traceback (most recent call last):
  File "ClassificationKeras.py", line 15, in <module>
    TMVA.PyMethodBase.PyInitialize()
AttributeError: type object 'TMVA' has no attribute 'PyMethodBase'

Can anyone help me?

ClassificationKeras.py (2.1 KB)

Hi,
I guess your ROOT installation has not been enabled with PyMVA. This can happen if you don’t have Numpy installed in your system. You should installed Numpy and then rebuild ROOT

Cheers

Lorenzo