我正在尝试使用以下代码来减小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)
如何解决此错误?
谢谢您的建议。