1 import h5py 2 3 test_f5 = [[[1, 2],[3, 4]], [[5, 6], [7, 8], [9, 10]]] 4 5 f = h5py.File('test.hdf5', 'w') 6 dset = f.create_dataset('test_f5', data=test_f5, compression='gzip', compression_opts=9) 7 f.close()Traceback (most recent call last): File "test_h5py.py", line 6, in <module> dset = f.create_dataset('test_f5', data=test_f5, compression='gzip', compression_opts=9) File "/work/miniconda2/lib/python2.7/site-packages/h5py/_hl/group.py", line 103, in create_dataset dsid = dataset.make_new_dset(self, shape, dtype, data, **kwds) File "/work/miniconda2/lib/python2.7/site-packages/h5py/_hl/dataset.py", line 87, in make_new_dset tid = h5t.py_create(dtype, logical=1) File "h5py/h5t.pyx", line 1448, in h5py.h5t.py_create (/home/ilan/minonda/conda-bld/work/h5py/h5t.c:16162) File "h5py/h5t.pyx", line 1468, in h5py.h5t.py_create (/home/ilan/minonda/conda-bld/work/h5py/h5t.c:15993) File "h5py/h5t.pyx", line 1523, in h5py.h5t.py_create (/home/ilan/minonda/conda-bld/work/h5py/h5t.c:15895)TypeError: Object dtype dtype('O') has no native HDF5 equivalent 1 import h5py 2 import numpy as np 3 4 test_f5 = [[[1, 2],[3, 4]], [[5, 6], [7, 8], [9, 10]]] 5 6 f = h5py.File('test.hdf5', 'w') 7 spec_dtype = h5py.special_dtype(vlen=np.dtype('float64')) 8 dset = f.create_dataset('test_f5', data=test_f5, dtype=spec_dtype, compression='gzip', compression_opts=9) 9 f.close()Traceback (most recent call last): File "test_h5py.py", line 8, in <module> dset = f.create_dataset('test_f5', data=test_f5, dtype=spec_dtype, compression='gzip', compression_opts=9) File "/work/miniconda2/lib/python2.7/site-packages/h5py/_hl/group.py", line 103, in create_dataset dsid = dataset.make_new_dset(self, shape, dtype, data, **kwds) File "/work/miniconda2/lib/python2.7/site-packages/h5py/_hl/dataset.py", line 126, in make_new_dset dset_id.write(h5s.ALL, h5s.ALL, data) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/home/ilan/minonda/conda-bld/work/h5py/_objects.c:2579) File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/home/ilan/minonda/conda-bld/work/h5py/_objects.c:2538) File "h5py/h5d.pyx", line 217, in h5py.h5d.DatasetID.write (/home/ilan/minonda/conda-bld/work/h5py/h5d.c:3421) File "h5py/_proxy.pyx", line 163, in h5py._proxy.dset_rw (/home/ilan/minonda/conda-bld/work/h5py/_proxy.c:2102) File "h5py/defs.pyx", line 2800, in h5py.defs.H5Tconvert (/home/ilan/minonda/conda-bld/work/h5py/defs.c:29440) File "h5py/_conv.pyx", line 712, in h5py._conv.ndarray2vlen (/home/ilan/minonda/conda-bld/work/h5py/_conv.c:6176)AttributeError: 'list' object has no attribute 'dtype'