问题:
File “h5py_objects.pyx”, line 54, in h5py._objects.with_phil.wrapper
File “h5py_objects.pyx”, line 55, in h5py._objects.with_phil.wrapper
File “h5py\h5f.pyx”, line 83, in h5py.h5f.open
TypeError: expected bytes, str found
解决:
将h5py.h5f.open(filename, fapl=propfaid)
改为:
h5py.h5f.open(bytes(filename, ‘utf-8’), fapl=propfaid)