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

scanpy installation on colab without any GPU's #3345

Open
1 of 3 tasks
CRISTIANJULIOCESAR opened this issue Nov 8, 2024 · 3 comments
Open
1 of 3 tasks

scanpy installation on colab without any GPU's #3345

CRISTIANJULIOCESAR opened this issue Nov 8, 2024 · 3 comments
Labels
Bug 🐛 Triage 🩺 This issue needs to be triaged by a maintainer

Comments

@CRISTIANJULIOCESAR
Copy link

CRISTIANJULIOCESAR commented Nov 8, 2024

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?

There's an issue with the installation of scanpy in Colab when working without GPUs, only using the CPU, which is my intention to avoid consuming computational units. This doesn't allow me to import scanpy; I get the following error:


ImportError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/cupy/init.py in
16 try:
---> 17 from cupy import _core # NOQA
18 except ImportError as exc:

10 frames
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory

The above exception was the direct cause of the following exception:

ImportError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/cupy/init.py in
17 from cupy import _core # NOQA
18 except ImportError as exc:
---> 19 raise ImportError(f'''
20 ================================================================
21 {_environment._diagnose_import_error()}

ImportError:

Failed to import CuPy.

If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.

On Linux, you may need to set LD_LIBRARY_PATH environment variable depending on how you installed CUDA/ROCm.
On Windows, try setting CUDA_PATH environment variable.

Check the Installation Guide for details:
https://docs.cupy.dev/en/latest/install.html

Original error:
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

Minimal code sample

!pip install scanpy
import scanpy as sc

Error output

No response

Versions


@CRISTIANJULIOCESAR CRISTIANJULIOCESAR added Bug 🐛 Triage 🩺 This issue needs to be triaged by a maintainer labels Nov 8, 2024
@eroell
Copy link
Contributor

eroell commented Nov 10, 2024

This is an issue with anndata 0.11.0 scverse/anndata#1749

@ilan-gold
Copy link
Contributor

@CRISTIANJULIOCESAR scverse/anndata#1749 (comment)

@flying-sheep
Copy link
Member

closing as duplicate. please check out the linked issue for workarounds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Triage 🩺 This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants