Hi Ana,
I’ll try to determine the cause and find a solution. What ROOT version do you have installed and how recent is your copy of rootpy?
For future rootpy problems it is best to post them on the github issues tracker:
github.com/rootpy/rootpy/issues?state=open
or on the Google groups list:
groups.google.com/forum/#!forum/rootpy-users
If we determine that the problem is with ROOT/PyROOT instead of rootpy, we then report it on ROOT’s JIRA issue tracker.
I am unable to reproduce that crash on my end while using ROOT 5.34.10 or the head of the 5.34 branch. But, I have seen similar crashes in the past. There could be a few issues at play.
Does it always crash and crash the same way each time you run it?
Does it still crash if you insert the line rootpy.log.info(‘hello’) after import rootpy?
Does it still crash the same way if you disable the rootpy error handler? Run your script with
NO_ROOTPY_HANDLER=1 python script.py
Does it still crash if you update to the latest ROOT and rootpy?
The NameError on the rootpy side could be from a race condition in the rootpy logger if it happens to be first initialized as ROOT is crashing…
Note that the signal handler was called at
The NameError on the rootpy side is probably just a nasty side effect of this crash as ROOT is heading out the door…
I would really like to determine what exactly is happening here. Again, I have seen similar crashes in ROOT causing issues on the rootpy side. Maybe there is something on the rootpy side that triggers the initial crash on the ROOT side, that then comes back to bite rootpy. But your code runs without any issues on my end.
Thanks!
Noel