编程语言
首页 > 编程语言> > python-PyTables中的此错误是什么?

python-PyTables中的此错误是什么?

作者:互联网

我正在通过python中的pandas使用pytables.我正在尝试使用pandas.read_hdf()加载文件,但出现此讨厌的错误.我希望我不会丢失我的1.1场不可替代的数据.保存过程中没有看到任何错误.一切似乎都正常.

有人可以解释这个错误在说什么吗?

另外,有什么办法可以恢复吗?

HDF5ExtError: HDF5 error back trace

  File "H5Dio.c", line 174, in H5Dread
    can't read data
  File "H5Dio.c", line 449, in H5D_read
    can't read data
  File "H5Dchunk.c", line 1729, in H5D_chunk_read
    unable to read raw data chunk
  File "H5Dchunk.c", line 2755, in H5D_chunk_lock
    unable to read raw data chunk
  File "H5Fio.c", line 113, in H5F_block_read
    read through metadata accumulator failed
  File "H5Faccum.c", line 254, in H5F_accum_read
    driver read request failed
  File "H5FDint.c", line 142, in H5FD_read
    driver read request failed
  File "H5FDsec2.c", line 720, in H5FD_sec2_read
    addr overflow, addr = 1108161578, size=7512, eoa=1108155712

解决方法:

类似的问题是here

底线.您的文件已损坏.无法从中恢复.特别警告(使用多个线程/进程作为编写者).参见文档here.

HDF5对编写者而言不是线程安全/进程安全的.

标签:pandas,hdf5,pytables,python
来源: https://codeday.me/bug/20191119/2038912.html