I have a problem with pyroot. When I try to import a ROOT histogram I get the same AttributeError all the time.
>>> from ROOT import TH1F
AttributeError: type object 'TArray' has no attribute '__getitem__'
During handling of the above exception, another exception occurred:
SystemError: <built-in method mro of ROOT.PyRootType object at 0x328fb18> returned a result with an error set
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'TH1F'
I also tried rootpy which doesn't work. Probably related?
I have Python 3.5 installed and did a clean install of ROOT with gcc 5.2.0. The Python module is listed when I run root-config --features
.
Any ideas? Or solutions?