Segfault 11 with pandas with Python v2.7.6 RC1 on Mac OS X 10.9

你说的曾经没有我的故事 提交于 2019-12-30 11:39:11

问题


In [1]: import json

In [2]: path = 'ch02/usagov_bitly_data2012-03-16-1331923249.txt'

In [3]: from pandas import DataFrame, Series;

In [4]: records = [json.loads(line) for line in open(path)]

In [5]: frame = DataFrame(records)

In [6]: frame['tz'][:10]
Segmentation fault: 11

Any access to frame results in a segfault. I have already upgraded to Python 2.7.6 RC1. Also happened in 2.7.5, also happens outside ipython. What am I to do?


回答1:


This appears to be a bug in Numpy that has been fixed recently. See https://github.com/numpy/numpy/issues/3962



来源:https://stackoverflow.com/questions/19722580/segfault-11-with-pandas-with-python-v2-7-6-rc1-on-mac-os-x-10-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!