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 with write_h5ad #21

Open
OmarSalem12 opened this issue Oct 31, 2022 · 1 comment
Open

Error with write_h5ad #21

OmarSalem12 opened this issue Oct 31, 2022 · 1 comment

Comments

@OmarSalem12
Copy link

OmarSalem12 commented Oct 31, 2022

Hi I have an error when writing to an h5ad file using write_h5ad :

Error in py_call_impl(callable, dots$args, dots$keywords) :
  TypeError: Can't implicitly convert non-string objects to strings
Above error raised while writing key 'assays' of <class 'h5py._hl.group.Group' > to /

I'm running R 4.2.0 and using Anndata 0.8.0

@rcannood
Copy link
Member

Hi @OmarSalem12 !

This error occurs when trying to load an h5ad file created by anndata>=0.8 using anndata<0.8. I think you probably have an older version of AnnData installed in the conda environment that reticulate uses. Can you run anndata::install_anndata() update anndata and try again?

Kind regards,
Robrecht

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