Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: write h5 file fail #39

Open
zznx opened this issue Oct 12, 2020 · 1 comment
Open

error: write h5 file fail #39

zznx opened this issue Oct 12, 2020 · 1 comment

Comments

@zznx
Copy link

zznx commented Oct 12, 2020

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:

@Puriney
Copy link

Puriney commented Feb 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants