Hi, I’ve been trying to understand this for the whole day.
I have the same problem on lxplus. So it is not something about OSX.
On my pc (Ubuntu linux - python2.7.6 - root 5.99/05) I can reed ntuples via commands like
for event in tree:
print event.branchName
while on lxplus (root 5.34.19 - python 2.6.6) this raises the same error as you:
What is driving me crazy is that I used the same commands two days ago, with the same config, and it worked absolutely fine.
What is going on? I’m stuck on this!
EDIT: it is not even possible to read the ntuple through
for event in tree:
print event.__getattr__('branchName')
or
for i in xrange(10):
tree.GetEntry(i)
print tree.__getattr__('branchName')
because it raises the same error!