sccaf icon indicating copy to clipboard operation
sccaf copied to clipboard

error: write h5 file fail

Open zznx opened this issue 5 years ago • 1 comments

ad.write(filename='ab.h5') I used SCCAF but find this problem ,can you help me? thank you

OSError Traceback (most recent call last) d:\program files\python37\lib\site-packages\anndata_io\utils.py in func_wrapper(elem, key, val, *args, **kwargs) 187 try: --> 188 return func(elem, key, val, *args, **kwargs) 189 except Exception as e:

d:\program files\python37\lib\site-packages\anndata_io\h5ad.py in write_series(group, key, series, dataset_kwargs) 265 dtype=h5py.special_dtype(vlen=str), --> 266 **dataset_kwargs, 267 )

d:\program files\python37\lib\site-packages\h5py_hl\group.py in create_dataset(self, name, shape, dtype, data, **kwds) 138 if name is not None: --> 139 self[name] = dset 140 return dset

d:\program files\python37\lib\site-packages\h5py_hl\group.py in setitem(self, name, obj) 372 if isinstance(obj, HLObject): --> 373 h5o.link(obj.id, self.id, name, lcpl=lcpl, lapl=self._lapl) 374

h5py_objects.pyx in h5py._objects.with_phil.wrapper()

h5py_objects.pyx in h5py._objects.with_phil.wrapper()

h5py\h5o.pyx in h5py.h5o.link()

OSError: Unable to create link (name already exists)

The above exception was the direct cause of the following exception:

zznx avatar Oct 12 '20 08:10 zznx

OSError: Unable to create link (name already exists)

Probably delete the existing 'ab.h5' file which saved the partial results. Then re-run to export.

Puriney avatar Feb 03 '21 03:02 Puriney