Open frenkiboy opened 3 years ago
I am bemused. Never seen this one before.
Try to figure out if it's a Conda problem, a reticulate problem or a basilisk problem.
Try doing this in the shell:
. ~/.cache/basilisk/1.2.1/0/etc/profile.d/conda.sh
conda activate ~/.cache/basilisk/1.2.1/velociraptor-1.0.0/env/bin/python
python
Which should open up Conda's copy of Python, and then
import scvelo
Does this work?
library(reticulate)
use_condaenv(path.expand("~/.cache/basilisk/1.2.1/velociraptor-1.0.0/env"), required=TRUE)
import("scvelo")
Does this work?
library(basilisk)
useBasiliskEnv(path.expand("~/.cache/basilisk/1.2.1/velociraptor-1.0.0/env"))
Dear Aaron,
Seems it's reticulate:
import("scvelo")
Error in py_module_import(module, convert = convert) :
ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/vfranke/.cache/basilisk/1.2.1/velociraptor-1.0.0/env/lib/python3.7/site-packages/matplotlib/ft2font.cpython-37m-x86_64-linux-gnu.so)
Detailed traceback:
File "/home/vfranke/R/x86_64-pc-linux-gnu-library/4.0/reticulate/python/rpytools/loader.py", line 24, in _import_hook
level=level
File "/home/vfranke/.cache/basilisk/1.2.1/velociraptor-1.0.0/env/lib/python3.7/site-packages/scvelo/__init__.py", line 16, in <module>
from .read_load import AnnData, read, read_loom, load, read_csv, get_df, DataFrame
File "/home/vfranke/R/x86_64-pc-linux-gnu-library/4.0/reticulate/python/rpytools/loader.py", line 24, in _import_hook
level=level
File "/home/vfranke/.cache/basilisk/1.2.1/velociraptor-1.0.0/env/lib/python3.7/site-packages/scvelo/read_load.py", line 1, in <module>
from . import logging as logg
File "/home/vfranke/R/x86_64-pc-linux-gnu-library/4.0/reticulate/python/rpytoo
All other steps do not trigger an error.
Best,
I would suggest creating a simple reproducible example that you can post on the reticulate repository.
Install Conda at https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh
Use reticulate to create a Conda environment containing the problematic packages, via:
library(reticulate)
conda_create("test", conda=path_to_conda)
conda_install("test", c("pandas", "matplotlib"), conda=path_to_conda)
Replacing path_to_conda
with wherever your conda installation landed (something like <installation>/bin/conda
).
Try to load that environment.
use_condaenv("test", required=TRUE)
import("pandas")
If it truly is a problem with reticulate, then the above should fail.
As a positive control, try to do the same in the shell using the steps similar to that posted in my first response.
Just make sure you're using the latest version of reticulate.
I am bemused. Never seen this one before.
Try to figure out if it's a Conda problem, a reticulate problem or a basilisk problem.
Is it a Conda problem?
Try doing this in the shell:
. ~/.cache/basilisk/1.2.1/0/etc/profile.d/conda.sh conda activate ~/.cache/basilisk/1.2.1/velociraptor-1.0.0/env/bin/python python
Which should open up Conda's copy of Python, and then
import scvelo
Is it a reticulate problem?
Does this work?
library(reticulate) use_condaenv(path.expand("~/.cache/basilisk/1.2.1/velociraptor-1.0.0/env"), required=TRUE) import("scvelo")
Is it a basilisk problem?
Does this work?
library(basilisk) useBasiliskEnv(path.expand("~/.cache/basilisk/1.2.1/velociraptor-1.0.0/env"))
I have the same problem. my conda was wrong
$ conda activate ~/.cache/basilisk/1.2.1/velociraptor-1.0.0/env/bin/python
I got the following error
Not a conda environment: /home/shijian/.cache/basilisk/1.2.1/velociraptor-1.0.0/env/bin/python
@shijianasdf
Try this instead (stop the path at "env", i.e. remove the final "bin/python")
conda activate ~/.cache/basilisk/1.2.1/velociraptor-1.0.0/env
I am getting the following error messages when executing the example from the help file:
When I try to execute the function for the first time, the error is the following:
When I execute the function subsequently:
session info:
I've tried setting the conda environment by hand, and pointing using environment variables, but it didn't help.
Any help would be appreciated.