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

anndata version 0.11.0 throws ImportError in Google Colab #1749

Closed
2 of 3 tasks
lauraluebbert opened this issue Nov 8, 2024 · 2 comments · Fixed by #1754
Closed
2 of 3 tasks

anndata version 0.11.0 throws ImportError in Google Colab #1749

lauraluebbert opened this issue Nov 8, 2024 · 2 comments · Fixed by #1754
Assignees
Labels

Comments

@lauraluebbert
Copy link

lauraluebbert 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 anndata.
  • (optional) I have confirmed this bug exists on the master branch of anndata.

Report

Google Colab notebook replicating the error:
https://colab.research.google.com/drive/13sCN2rGb5P2udAV-YKJ2FM0iiA3QldXX?usp=sharing

Note: This error is fixed when the Colab runtime is switched to a GPU session. However, GPU sessions are expensive and Google Colab plays an increasingly important role in sharing transcriptomic data analysis code, so I think being able to use anndata on the free CPU runtime of Google Colab is essential.

(edit) Also note that this error does not occur for previous versions of anndata.

Versions

0.11.0 (cannot run this because import fails)
@ilan-gold
Copy link
Contributor

For now, I would recommend uninstalling cupy-cuda12x i.e., pip uninstall cupy-cuda12x -y.

@Intron7 Intron7 assigned ilan-gold and unassigned Intron7 Nov 11, 2024
@ilan-gold
Copy link
Contributor

A different fix is to upgrade cupy. That version of cupy has the not-very-helpful error-on-import (even if the module is there), but cupy>=0.13.0 does not, and works fine.

pip install --upgrade "cupy-cuda12x"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants