I’m not able to compile any code when including TMVA/PyMethodBase.h in ROOT 6.12/06.
The error is:
/usr/local/include/TMVA/PyMethodBase.h:47:10: fatal error: 'numpy/numpyconfig.h' file not found
#include "numpy/numpyconfig.h"
^~~~~~~~~~~~~~~~~~~~~
Error in <ACLiC>: Dictionary generation failed!
I have no problem loading PyMethodBase.h in a simple (not compiled) macro or in an interactive root session. In other words this[1] works, this[2] not.
[1] root macro.C
[2] root macro.C++
Hi Stefan,
it seems that one needs to install numpy with apt-get (or equivalent) and not with pip.
After installing numpy with sudo apt install python-numpy
the error has disappeared.
I assumed it was a ROOT error since I got it both on my personal laptop and on the remote server when I run my job with (CMSSW).
Since it’s not a ROOT error I think this thread can be closed.