dynverse / anndata

Annotated multivariate observation data in R
https://anndata.dynverse.org
Other
42 stars 3 forks source link

Error with write_h5ad #21

Open OmarSalem12 opened 1 year ago

OmarSalem12 commented 1 year ago

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 commented 1 year ago

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