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

ModuleNotFoundError in singularity image in version cell2location-v0.06-alpha.sif #137

Closed
CeliaLerma opened this issue Mar 29, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@CeliaLerma
Copy link

Hi,

I am trying to run the new tutorial of cell2location in the latest singularity image version (cell2location-v0.06-alpha.sif) and I am encountering this problem:

singularity shell cell2location-v0.06-alpha.sif
python
import cell2location
from cell2location.utils.filtering import filter_genes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cell2location.utils'

Am I using a wrong image? Which one should I use? I have also tried to run it using v0.05 and it still does not work.

Thank you for your time.

@CeliaLerma CeliaLerma added the bug Something isn't working label Mar 29, 2022
@vitkl
Copy link
Contributor

vitkl commented Mar 29, 2022 via email

@CeliaLerma
Copy link
Author

Thanks for the quick reply! I will try with the conda enviroment instead

@CeliaLerma
Copy link
Author

CeliaLerma commented Apr 14, 2022

Hi,
As you suggested last time, I am not using the singularity image anymore and I have created a new environment to work with but I am encountering some problems still.

I created an environment this morning and installed:

conda create -n cell2loc python=3.9 -y
conda activate cell2loc
pip install git+https://github.com/BayraktarLab/cell2location

But this error pops up:

WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
ERROR (theano.gpuarray): pygpu was configured but could not be imported or is too old (version 0.7 or higher required)
NoneType: None
Global seed set to 0
loaded inf_aver
read and modif visium slide
calculated QC metrics
Traceback (most recent call last):
 File "/gpfs/bwfor/home/hd/hd_hd/hd_td263/Visium_pipeline/scripts_cell2loc/cell2loc_mapping.py", line 72, in <module>
   scvi.data.setup_anndata(adata=adata, batch_key="sample")
AttributeError: module 'scvi.data' has no attribute 'setup_anndata'

I have also tried with pip install git+https://github.com/BayraktarLab/cell2location.git#egg=cell2location[tutorials] and the same error appears. Is there anything else that I should take into account when creating the environment that is missing?

Thank you for your time

@vitkl
Copy link
Contributor

vitkl commented Apr 17, 2022

Hi again

can you try this solution?

#142 (comment)

@CeliaLerma
Copy link
Author

CeliaLerma commented Apr 17, 2022

Hi,
Thanks for the response. I have used the export PYTHONNOUSERSITE="someletters" and also got the jax error. After installing the corrected jax versions I still get the same error.

WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
ERROR (theano.gpuarray): pygpu was configured but could not be imported or is too old (version 0.7 or higher r$
NoneType: None
Global seed set to 0
loaded inf_aver
read and modif visium slide
calculated QC metrics
Traceback (most recent call last):
  File "/gpfs/bwfor/home/hd/hd_hd/hd_td263/Visium_pipeline/scripts_cell2loc/cell2loc_mapping.py", line 72, in $
    scvi.data.setup_anndata(adata=adata, batch_key="sample")
AttributeError: module 'scvi.data' has no attribute 'setup_anndata'

These are my package versions:

scvi-tools 0.16.0
cell2location 0.8a0

Are these the correct ones?

Thanks!

@vitkl vitkl closed this as completed Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants