PyROOT + CopyTree() segfaults

I am using PyROOT, and trying to run CopyTree(), however I receive a segmentation violation when I run the following code:

from ROOT import TFile, TTree, TChain

c = TChain()


t = c.CopyTree('something > 0')

If I do the same thing using the ROOT interpreter it works fine and without errors. I’ve tried this in both ROOT v4 and v5, so I think that perhaps I am missing a step that needs to be done in PyROOT?

Thank you.


as I’m unable to reproduce any differences between rint and python, could you please post the traceback of the segfault and see whether I can guess what is going on?


I am sorry, the error was on my part. Please ignore the original post.