-
Notifications
You must be signed in to change notification settings - Fork 2
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
No module named 'anndata' error #8
Comments
Dear Gianfilippo, Thank you for your interest in MetacellAnalysisToolkit. Using the following command lines, we obtained no error:
We suspect that we are not using the same file as input. Unfortunately, the link to download the cd34_multiome_rna.h5ad initially provided in our README seems to be corrupted at the moment. We apologize for the inconvenience and have updated the link. Could you please download again the data and check that you have the following md5: We can also run a test on another dataset. After cloning/pulling the current MetacellAnalysisToolkit repository you can try the following command lines:
Finally, for future usage, please note that matk:v1.0 is based on Seurat V4 and matk:v1.1 on Seurat V5. The command lines described above should run with both docker environments. Best wishes. |
Hi, thanks, but I still get the same error. I think both the conda version and the Docker version look into my local Python path. What do you suggest ? Thanks |
Hi, Thanks for the feedback, I agree that it could be the case considering the error message. I am surprised though that this happens in the docker container. Could you try to identify which python is used, running: I think that singularity has a strange behaviour and mounts also the HOME directory, can you provide the output of the following command: and then do the same adding the --no-home option: I suspect that adding --no-home could solve your issue. Note that I had to update the docker containers, please pull again the containers using singularity before running your tests. Let me know if this helps and I will update the README accordingly. Best wishes, |
Hi, thanks. I am puzzled as well. Anyway,
I should also mention that the singularity run command looks into my R_LIBS_USER even if I add the "--no-home" flag and exits with a different error code early in the process If I unset R_LIBS_USER, then I am back to the error I reported, also using the "--no-home" flag. The python path seems to be correct, so I do not understand why i am getting the error. What do you think ? Best |
Hi, Sorry for the delay, I was unavailable during the past week. Could you please provide the output of the following command:
And then:
Additionally, could you let me know the version of Singularity you are using? I would like to try to reproduce the error. Finally, something that could help us debug would be to check the environment variables:
Best, Aurélie |
Hi, thanks for looking into this! NOTE: Python version was forced by PATH python versions found: I am really using apptainer 1.2.5-1.el8 The output from the second command: Best |
Hello, Based on these outputs, to me it seems that the paths inside the container are correct with --cleanenv, what is your error running the matk command including the cleanenv option?
I had some issues installing your version of apptainer, I will come back to you when it is solved. |
Hi, sorry about the delay. I just tried the last two commands and the runs completed without errors. I did not change anything on the cluster or my account settings. So I do not know why things are working now. Thanks |
Just want to add for people (not sure if this could be causing any of the problems in this thread) that Seurat files should be v3/4 and file name should end in .rds not .RDS (case sensitive, sometimes people use all caps for file suffix). Great tool! It's working really well for me. |
Hi, I also get a warning before: I did install the latest reticulate, but the error persists What do you think ? |
Hi @gianfilippo, Thank you for your feedbacks. If I understand correctly you also have this error on the example data when using SEACells and MetaCell, could you please provide us the command line which led to this error? Also, it seems that the error occurs when running Note that for SEACell, we recently fixed an issue that was arising when a seurat object without pca embedding was provided as input. If you are in this configuration, please make sure to pull the last changes of the github repo and if needed pull again the docker containers (container with Best, |
Hi, I tried it again, without making any changes and it works now. I do get some warnings with MetaCell, but it seems ok. Thanks again for your input. Best |
Hi,
I tried both the conda and docker (using singularity) versions
I run the following
MATK -t SuperCell -i data/cd34_multiome_rna.h5ad -o MATK_output/SuperCell/cd34/ -n 50 -f 2000 -k 30 -g 75 -s seurat
and
singularity run --bind $(pwd) matk_v1.0.sif MATK -t SuperCell -i data/cd34_multiome_rna.h5ad -o MATK_output/SuperCell/cd34/ -n 50 -f 2000 -k 30 -g 75 -s seurat
and I get the error below. Can you please help ?
Thanks
Error in py_module_import(module, convert = convert) :
ModuleNotFoundError: No module named 'anndata'
Run
reticulate::py_last_error()
for details.Calls: -> -> py_module_import
Execution halted
The text was updated successfully, but these errors were encountered: