# TMVAGui PROBLEM

**URL:** <https://root-forum.cern.ch/t/tmvagui-problem/27493>\
**Category:** TMVA\
**Created:** [January 9, 2018, 11:03am UTC](https://root-forum.cern.ch/t/tmvagui-problem/27493 "2018-01-09T11:03:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/geo/32/15552_2.png) [@Geo](https://root-forum.cern.ch/u/Geo)\
**Post date:** [January 9, 2018, 11:03am UTC](https://root-forum.cern.ch/t/tmvagui-problem/27493/1 "2018-01-09T11:03:14Z")

</div>

Hello I have a problem with the gui of TMVA. When I run root -l TMVAGui.C, the gui pops up but when I choose a specific graph after the train and testing method, I cannot and the error is

root [1] Error in TSystem::ExpandFileName: input: $ROOTSYS/tmva/test/variables.C, output: $ROOTSYS/tmva/test/variables.C  
Error in TApplication::ExecuteFile: macro variables.C not found in path .:/usr/share/root/macros::./:$ROOTSYS/tmva/test/:

I understand what the issue is although I cannot fix it. I am using root v5.34

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [January 9, 2018, 4:02pm UTC](https://root-forum.cern.ch/t/tmvagui-problem/27493/2 "2018-01-09T16:02:19Z")

</div>

Hi,

I think the problem is that is looking in the wrong directory for the macros. In 5.34 they should be in root\_source/tmva/test where root is the location of your source directory.

You should try to set the path correctly by doing:

gROOT-\>SetMacroPath(“root\_source/tmva/test”)

Lorenzo

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [January 9, 2018, 7:36pm UTC](https://root-forum.cern.ch/t/tmvagui-problem/27493/3 "2018-01-09T19:36:34Z")

</div>

You can also try running `root -l -e 'TMVA::TMVAGui()'` 🙂

EDIT: The ‘-e’ option is only available in root 6 and onwards.

Cheers,  
Kim
