Pytable,Hdf5文件大小通过使用ptrepack减小,但是出现错误消息

时间:2018-09-05 14:59:33

标签: python hdf5

我正在尝试使用以下代码来减小hdf5文件的大小。

    op_path = 'c:/data/operation/operation.hdf:'
    outfilename = 'c:/data/operation/ret.hdf:'
    command = ["ptrepack", "-o", "--chunkshape=auto", "--propindexes", op_path, outfilename]
    call(command)

但是运行此代码后,我面临错误消息

Traceback (most recent call last):
  File "C:\Anaconda3\Scripts\ptrepack-script.py", line 5, in <module>
    sys.exit(tables.scripts.ptrepack.main())
  File "C:\Anaconda3\lib\site-packages\tables\scripts\ptrepack.py", line 434, in main
srcfile, srcnode = src
ValueError: too many values to unpack (expected 2)

如何解决此错误?

谢谢您的建议。

0 个答案:

没有答案