我正在尝试运行有关如何通过rootpy 文档中的 matplotlib 绘制根直方图的示例。
这会导致一个相当模糊的错误:
import rootpy.plotting.root2matplotlib as rplt
File "/Users/pigard/ROOT/install/lib/ROOT.py", line 301, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/usr/local/lib/python2.7/site-packages/rootpy/plotting/__init__.py", line 12, in <module>
from .hist import Hist, Hist1D, Hist2D, Hist3D, Efficiency, HistStack, histogram
File "/Users/pigard/ROOT/install/lib/ROOT.py", line 301, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/usr/local/lib/python2.7/site-packages/rootpy/plotting/hist.py", line 2251, in <module>
snake_case_methods(cls)
File "/usr/local/lib/python2.7/site-packages/rootpy/decorators.py", line 143, in snake_case_methods
members = inspect.getmembers(root_base)
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/inspect.py", line 253, in getmembers
value = getattr(object, key)
SystemError: error return without exception set
我在带有 ROOT6 的 OS X 10.10 上运行。对我来说似乎有点奇怪的一件事是/usr/local/Cellar/
堆栈跟踪的最后一行中的引用,而前几行引用的是/usr/local/lib/
.
但是,我在运行 pyROOT 时没有遇到任何其他问题,因此对我来说这看起来不像是错误库的问题。