# TMVA output file; no StreamerInfo found in "file.root"

**URL:** <https://root-forum.cern.ch/t/tmva-output-file-no-streamerinfo-found-in-file-root/29821>\
**Category:** TMVA\
**Created:** [July 17, 2018, 7:36am UTC](https://root-forum.cern.ch/t/tmva-output-file-no-streamerinfo-found-in-file-root/29821 "2018-07-17T07:36:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrian.gutierrez.vaz](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@adrian.gutierrez.vaz](https://root-forum.cern.ch/u/adrian.gutierrez.vaz)\
**Post date:** [July 17, 2018, 7:36am UTC](https://root-forum.cern.ch/t/tmva-output-file-no-streamerinfo-found-in-file-root/29821/1 "2018-07-17T07:36:31Z")

</div>

Hi TMVA experts,

I am creating a new ROOT file so that useful output information of the TMVA script can be stored on it. Nevertheless, once I finish to train, test, and evaluate all methods and try to open the root file that I create I get the following error,

`no StreamerInfo found in LearningOutput.root, therefore, preventing schema evolution when reading this file`

The script is being run on SWAN then I use `scp` to transfer the LearningOutput.root file to my local machine and i try to open the file from my command line (by going into new TBrowser). In my machine I am using `ROOT 6.06/02`.

Is there a way to solve my problem?

Thanks,

Adrian

---

<div class="post-metadata">

**Author:** ![ganis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ganis/32/12484_2.png) [@ganis](https://root-forum.cern.ch/u/ganis)\
**Post date:** [July 17, 2018, 9:41am UTC](https://root-forum.cern.ch/t/tmva-output-file-no-streamerinfo-found-in-file-root/29821/2 "2018-07-17T09:41:43Z")

</div>

Dear Adrian,

Can you give some more details on the way you open the file and store the information in it?  
Does the file contain anything? (What is its size?)

G Ganis

---

<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:** [July 23, 2018, 10:36am UTC](https://root-forum.cern.ch/t/tmva-output-file-no-streamerinfo-found-in-file-root/29821/3 "2018-07-23T10:36:10Z")

</div>

In addition to the question of @ganis, I would ask if you properly close the file at the end of the script (e.g. `file->Close();`).

If you could append a minimal script that reproduces the problem that would help.

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![adrian.gutierrez.vaz](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@adrian.gutierrez.vaz](https://root-forum.cern.ch/u/adrian.gutierrez.vaz)\
**Post date:** [July 24, 2018, 6:01pm UTC](https://root-forum.cern.ch/t/tmva-output-file-no-streamerinfo-found-in-file-root/29821/4 "2018-07-24T18:01:01Z")

</div>

Hi Ganis and Kim,

I was not properly closing my file. The problem was solved by applying `file->Close()` at the end of the evaluation (namely, after applying `factory->EvaluateAllMethods()`)

Thanks!

-Adrian

---

<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:** [July 24, 2018, 6:16pm UTC](https://root-forum.cern.ch/t/tmva-output-file-no-streamerinfo-found-in-file-root/29821/5 "2018-07-24T18:16:06Z")

</div>

Hi! Glad you found a solution to your problem! If you would be so kind to mark the solution that would be appreciated!

Cheers,  
Kim
