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

GLIBCXX_3.4.30 not being imported from miniconda enviroment #3479

Open
2 of 3 tasks
dm8000 opened this issue Feb 22, 2025 · 0 comments
Open
2 of 3 tasks

GLIBCXX_3.4.30 not being imported from miniconda enviroment #3479

dm8000 opened this issue Feb 22, 2025 · 0 comments
Labels
Triage 🩺 This issue needs to be triaged by a maintainer

Comments

@dm8000
Copy link

dm8000 commented Feb 22, 2025

Please make sure these conditions are met

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of scanpy.
  • (optional) I have confirmed this bug exists on the main branch of scanpy.

What happened?

I am trying to make scanpy work in reticulate. I used miniconda to create an enviroment. I can work with any regular package without problems, but scanpy and scvelo are having a similar issue.

when I try to import scanpy, I get:

ImportError: /cm/local/apps/gcc/current/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.30' not found (required by /home/redacted/miniconda/miniconda/envs/r-reticulate/lib/python3.8/site-packages/scipy/optimize/_highs/_highs_wrapper.cpython-38-x86_64-linux-gnu.so)

My pyconfig looks like this:

python:         /home/redacted/miniconda/miniconda/envs/r-reticulate/bin/python
libpython:      /home/redacted/miniconda/miniconda/envs/r-reticulate/lib/libpython3.8.so
pythonhome:     /home/redacted/miniconda/miniconda/envs/r-reticulate:/home/redacted/miniconda/miniconda/envs/r-reticulate
version:        3.8.12 | packaged by conda-forge | (default, Sep 29 2021, 19:50:30)  [GCC 9.4.0]
numpy:          /home/redacted/miniconda/miniconda/envs/r-reticulate/lib/python3.8/site-packages/numpy
numpy_version:  1.21.6
builtins:       [builtin module]

NOTE: Python version was forced by use_python() function

scanpy is 1.9.6 and was installed from conda-forge.

"libstdc" is in my reticulate env:

$ ldd /home/redacted/miniconda/miniconda/envs/r-reticulate/lib/python3.8/site-packages/scipy/optimize/_highs/_highs_wrapper.cpython-38-x86_64-linux-gnu.so | grep libstdc++
        libstdc++.so.6 => /home/redacted/miniconda/miniconda/envs/r-reticulate/lib/python3.8/site-packages/scipy/optimize/_highs/../../../../../libstdc++.so.6 (0x00007ffff7e44000)

I don't know how to force it to use the correct path. Even if "GLIBCXX_3.4.30" can be found in /cm/local/apps/gcc/current/lib64/ it still does not work, so I have no idea how to work around this anymore.

Minimal code sample

{r}
library(reticulate)
Sys.setenv(RETICULATE_MINICONDA_PATH="/home/redacted/miniconda/miniconda")
conda_lib_path <- "/home/redacted/miniconda/miniconda/envs/r-reticulate/lib"
use_condaenv("r-reticulate", required = TRUE)


{python}
import scanpy

Error output

Versions


@dm8000 dm8000 added the Triage 🩺 This issue needs to be triaged by a maintainer label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage 🩺 This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant