# TMVA directory in root 6

**URL:** <https://root-forum.cern.ch/t/tmva-directory-in-root-6/23596>\
**Category:** TMVA\
**Created:** [January 24, 2017, 10:23am UTC](https://root-forum.cern.ch/t/tmva-directory-in-root-6/23596 "2017-01-24T10:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbduAlhag](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@AbduAlhag](https://root-forum.cern.ch/u/AbduAlhag)\
**Post date:** [January 24, 2017, 10:23am UTC](https://root-forum.cern.ch/t/tmva-directory-in-root-6/23596/1 "2017-01-24T10:23:27Z")

</div>

Dear all;  
I need some help into why I cannot use root TMVA. Each time I try to run the example, i get the following:

`abdu@abdu-Lenovo-Y50-70-Touch:~/Downloads/root-6.08.04/tutorials/tmva$ root -l TMVARegression.C
Warning in <TEnvRec::ChangeValue>: duplicate entry <Unix.*.Root.MacroPath=/home/abdu/Downloads/root/tutoials/tmva> for level 1; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <Unix.*.Root.MacroPath=/home/abdu/Downloads/root/tmva/test> for level 2; ignored
Warning in <TEnvRec::ChangeValue>: duplicate entry <Unix.*.Root.MacroPath=/home/abdu/Downloads/root/tmva/test> for level 2; ignored
root [0] 
Processing TMVARegression.C...
Error in <TApplication::ExecuteFile>: macro TMVARegression.C not found in path /home/abdu/Downloads/root-6.08.04/tmva/test
root [1] 
`  
It seems as root is trying to access a folder that does not exist, TMVARegression in the newer root version could be foud in tutorials/tmva but root is keep trying to access tmva/test.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![AbduAlhag](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@AbduAlhag](https://root-forum.cern.ch/u/AbduAlhag)\
**Post date:** [January 24, 2017, 1:54pm UTC](https://root-forum.cern.ch/t/tmva-directory-in-root-6/23596/2 "2017-01-24T13:54:29Z")

</div>

Update,  
The following runs fine, but any changes to it even the file name or the directory will give the same error

`~/workdir> echo "Unix.*.Root.MacroPath: $ROOTSYS/tmva/test" >> .rootrc
~/workdir> root -l $ROOTSYS/tmva/test/TMVAClassification.C`

Best wishes;  
Abdu
