Hello,
This may be a stupid question - but it already ate 2h of my time so I’m going to ask anyway:
I’m doing this:
from ROOT import TH1F
And I’m getting this:
AttributeError: type object 'TArray' has no attribute '__getitem__'
During handling of the above exception, another exception occurred:
SystemError: <built-in method __subclasscheck__ of ROOT.PyRootType object at 0x7f960c2f2080> returned a result with an error set
During handling of the above exception, another exception occurred:
SystemError: <built-in method mro of ROOT.PyRootType object at 0x2be7448> returned a result with an error set
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'TH1F'
I’m using python 3.5.1 and root 6.06/08
root has been built with PYTHON_EXECUTABLE and PYTHON_INCLUDE_DIR pointing to the ‘correct’ python3 installation.
Any clues?
Thanks,
Wojtek