在jupyter中运行root时出现Metadata.framework错误

时间:2016-08-08 15:02:22

标签: metadata jupyter root-framework

我在jupyter笔记本中运行代码(这是代码供参考):

import ROOT as root 

f = root.TFile("160721_0828.root")

for event in f.tree.events:
     print (1)

它应该是一个简单的代码,循环遍历文件。但是当我运行它时,内核会崩溃,我必须重新启动所有内容。我也在终端中遇到了很多这类错误:

2016-08-08 18:25:20.439 atos[99872:272f] Metadata.framework [Error]: couldn't get the client port
 0x0000000100000cc4 in start (in python) + 52
在程序崩溃之前

。我使用的是Mac,版本10.9.5。可能是什么原因?

1 个答案:

答案 0 :(得分:0)

可能您的Spotlight索引已禁用,且无法访问必要的元数据。

尝试将Spotlight索引打开并显示错误消息:

"Metadata.framework [Error]: couldn't get the client port"

消失,内核会稳定。