# TMVA fatal error: 'numpy/numpyconfig.h' file not found

**URL:** <https://root-forum.cern.ch/t/tmva-fatal-error-numpy-numpyconfig-h-file-not-found/22430>\
**Category:** TMVA\
**Created:** [January 3, 2017, 6:11pm UTC](https://root-forum.cern.ch/t/tmva-fatal-error-numpy-numpyconfig-h-file-not-found/22430 "2017-01-03T18:11:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmcrn](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/6f9a4e/32.png) [@bmcrn](https://root-forum.cern.ch/u/bmcrn)\
**Post date:** [January 3, 2017, 6:11pm UTC](https://root-forum.cern.ch/t/tmva-fatal-error-numpy-numpyconfig-h-file-not-found/22430/1 "2017-01-03T18:11:48Z")

</div>

I tried to install root Version 6.08.00 on Linux openSuse Leap 42.1.  
During cmake of TMVA following error occurs:  
[ul][64%] Built target rootcling  
Scanning dependencies of target G\_\_PyMVA  
[64%] Generating G\_\_PyMVA.cxx, …/…/lib/libPyMVA\_rdict.pcm, …/…/lib/libPyMVA.rootmap  
Scanning dependencies of target G\_\_MultiProc  
[64%] Generating G\_\_MultiProc.cxx, …/…/lib/libMultiProc\_rdict.pcm, …/…/lib/libMultiProc.rootmap  
In file included from input\_line\_12:6:  
/home/bernhardi/rootbindir800/include/TMVA/PyMethodBase.h:47:10: fatal error: ‘numpy/numpyconfig.h’ file not found  
#include “numpy/numpyconfig.h”  
^  
Error: …/…/bin/rootcling: compilation failure (/home/bernhardi/rootbindir800/lib/libPyMVAf61e6fd321\_dictUmbrella.h)  
tmva/pymva/CMakeFiles/G\_\_PyMVA.dir/build.make:69: recipe for target ‘tmva/pymva/G\_\_PyMVA.cxx’ failed  
gmake[2]: \*\*\* [tmva/pymva/G\_\_PyMVA.cxx] Error 1  
CMakeFiles/Makefile2:22108: recipe for target ‘tmva/pymva/CMakeFiles/G\_\_PyMVA.dir/all’ failed  
gmake[1]: \*\*\* [tmva/pymva/CMakeFiles/G\_\_PyMVA.dir/all] Error 2  
gmake[1]: \*\*\* Warte auf noch nicht beendete Prozesse…  
[64%] Built target G\_\_MultiProc  
Makefile:149: recipe for target ‘all’ failed  
gmake: \*\*\* [all] Error 2  
[/ul]  
I have attached the complete cmake-protocols.  
Is there any workaround possible? I have added Pythia6. Should I also add numpy somewhere?  
Best regards and I wish you a happy new year.  
[Cmake-Protokoll.txt](https://root-forum.cern.ch/uploads/default/original/2X/8/8720907da9637a72a4d9cd6b576f1e9982f3baf1.txt) (275 KB)

---

<div class="post-metadata">

**Author:** ![bmcrn](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/6f9a4e/32.png) [@bmcrn](https://root-forum.cern.ch/u/bmcrn)\
**Post date:** [January 3, 2017, 9:34pm UTC](https://root-forum.cern.ch/t/tmva-fatal-error-numpy-numpyconfig-h-file-not-found/22430/2 "2017-01-03T21:34:39Z")

</div>

Additional remark:  
The error describes above does not appear when starting with version 6.08.02. For this version I have used the same Cmake-setting as for 6.08.00.

---

<div class="post-metadata">

**Author:** ![mato](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mato/32/12317_2.png) [@mato](https://root-forum.cern.ch/u/mato)\
**Post date:** [January 4, 2017, 2:10pm UTC](https://root-forum.cern.ch/t/tmva-fatal-error-numpy-numpyconfig-h-file-not-found/22430/3 "2017-01-04T14:10:29Z")

</div>

As you have seen, a fix was added to solve [sft.its.cern.ch/jira/browse/ROOT-8429](https://sft.its.cern.ch/jira/browse/ROOT-8429) and is available from 6.08.02

---

<div class="post-metadata">

**Author:** ![bmcrn](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/6f9a4e/32.png) [@bmcrn](https://root-forum.cern.ch/u/bmcrn)\
**Post date:** [January 4, 2017, 9:16pm UTC](https://root-forum.cern.ch/t/tmva-fatal-error-numpy-numpyconfig-h-file-not-found/22430/4 "2017-01-04T21:16:27Z")

</div>

Many Thanks for the hint!
