这次往我一个老的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”,之前都还能创建的,突然就不行了,找了半天也没找到解决方案。
后面自己尝试其他方法的时候,错误的把原来的文件名换了个名字,本来以为自己一直操作错了,没想到居然可以写进去了。
虽然不知道是什么原因引起来的,也不知道是不是改了文件名就好了,在这里记录下,希望遇到的人,有个思路,哈哈~