Open dfermin opened 2 years ago
I am having the same issue with basically the same error, so any help would be much appreciated - thanks!:
library(sceasy)
library(reticulate)
use_condaenv('sceasy')
sceasy::convertFormat(obj, from="seurat", to="anndata",
outFile='obj.h5ad')
Error in py_module_import(module, convert = convert) :
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/blairj/miniconda3/envs/sceasy/lib/python3.11/site-packages/pandas/_libs/window/aggregations.cpython-311-x86_64-linux-gnu.so)
5: stop(<environment>)
4: py_module_import(module, convert = convert)
3: reticulate::import("anndata", convert = FALSE)
2: func(obj, outFile = outFile, main_layer = main_layer, ...)
1: sceasy::convertFormat(obj, from = "seurat", to = "anndata", outFile = "obj.h5ad")
reticulate::py_discover_config()
python: /home/blairj/miniconda3/envs/sceasy/bin/python
libpython: /home/blairj/miniconda3/envs/sceasy/lib/libpython3.11.so
pythonhome: /home/blairj/miniconda3/envs/sceasy:/home/blairj/miniconda3/envs/sceasy
version: 3.11.4 (main, Jul 5 2023, 13:45:01) [GCC 11.2.0]
numpy: /home/blairj/miniconda3/envs/sceasy/lib/python3.11/site-packages/numpy
numpy_version: 1.25.2
I resolved this by downgrading pandas to 1.5.1!
condas install pandas=1.5.1
Hello. I've successfully created a condo environment and installed anndata==0.6.19 scipy==1.2.1 :
conda create -n h5ad anndata==0.6.19 scipy==1.2.1 loompy -c bioconda --yes
Within this new anaconda environment I've started up R and installed reticulate and r-sceasy (with all dependencies).
I can read in my Seurat RDS object but the conversion to H5AD fails. Here is the R code I'm using:
The error message I get is:
Which seems a bit strange since that GLIBCXX library is installed in the environment:
Any suggestions how I can fix this?
In case it helps I can find/use the correct python environment in R: