Python-Pandas之HDFStore读写的奇葩问题

25 篇文章 0 订阅
18 篇文章 3 订阅

这次往我一个老的HDF文件里面写新的数据,报了下面这个错:

HDF5ExtError                              Traceback (most recent call last)
~/anaconda3/lib/python3.6/site-packages/tables/node.py in __init__(self, parentnode, name, _log)
    265             if new:
--> 266                 self._v_objectid = self._g_create()
    267             else:

tables/hdf5extension.pyx in tables.hdf5extension.Group._g_create (tables/hdf5extension.c:11589)()

HDF5ExtError: HDF5 error back trace

  File "H5G.c", line 314, in H5Gcreate2
    unable to create group
  File "H5Gint.c", line 194, in H5G__create_named
    unable to create and link to group
  File "H5L.c", line 1638, in H5L_link_object
    unable to create new link to object
  File "H5L.c", line 1882, in H5L_create_real
    can't insert link
  File "H5Gtraverse.c", line 861, in H5G_traverse
    internal path traversal failed
  File "H5Gtraverse.c", line 596, in H5G_traverse_real
    can't look up component
  File "H5Gobj.c", line 1156, in H5G__obj_lookup
    can't locate object
  File "H5Gstab.c", line 907, in H5G__stab_lookup
    not found
  File "H5B.c", line 362, in H5B_find
    can't lookup key in subtree
  File "H5B.c", line 362, in H5B_find
    can't lookup key in subtree
  File "H5B.c", line 340, in H5B_find
    unable to load B-tree node
  File "H5AC.c", line 1262, in H5AC_protect
    H5C_protect() failed.
  File "H5C.c", line 3574, in H5C_protect
    can't load entry
  File "H5C.c", line 7954, in H5C_load_entry
    unable to load entry
  File "H5Bcache.c", line 136, in H5B__load
    can't read B-tree node
  File "H5Fio.c", line 120, in H5F_block_read
    read through metadata accumulator failed
  File "H5Faccum.c", line 214, in H5F__accum_read
    driver read request failed
  File "H5FDint.c", line 207, in H5FD_read
    addr overflow, addr = 9800235584, size=544, eoa=9622249177

End of HDF5 error back trace

Can't create the group Frame_115323.

During handling of the above exception, another exception occurred:

HDF5ExtError                              Traceback (most recent call last)
/media/kpierce/Data/steadyspt4.1-rectified/analysis/stereo-analysis-codes/toolbox.py in detection(rawvid, outdir, lr, minmass, diameter, thresh, lim, start)
    125             features['frame'] = t #add a column as required by tp.PandasHDFStoreBig()
--> 126             file.put(features) # put the features into the container
    127             del D, mask, F, features #keep memory as clean as possible

说是“Can't create the group Frame_115323”,之前都还能创建的,突然就不行了,找了半天也没找到解决方案。

后面自己尝试其他方法的时候,错误的把原来的文件名换了个名字,本来以为自己一直操作错了,没想到居然可以写进去了。

虽然不知道是什么原因引起来的,也不知道是不是改了文件名就好了,在这里记录下,希望遇到的人,有个思路,哈哈~

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

苏小败在路上

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值