kharchenkolab/leidenAlg

ModuleNotFoundError: No module named 'leidenalg'

howtofindme opened this issue · 1 comments

hi,
Sorry to interrupt you,but i ran into a issue when i run this code in R:
mini_visium <- doLeidenCluster(gobject = mini_visium,
resolution = 0.4, n_iterations = 1000)

a problem occurs :
Error in py_run_file_impl(file, local, convert) :
ModuleNotFoundError: No module named 'leidenalg'

Detailed traceback:
File "", line 10, in
File "D:\Win10 System\Documents\R\win-library\4.1\reticulate\python\rpytools\loader.py", line 44, in _import_hook
level=level

So,i checked this :
image

And using conda, i found this: leidenalg is there!!!
image

And then i tried this : Although leidenalg , pandas AND pillow is in my evrironment,but only pandas could be uesed.
image

Could you please help sovle this problem?

Hi @howtofindme

Thanks for the issue.
Based on the function you're running doLeidenCluster(), I think you have the wrong GitHub repo. https://github.com/RubD/Giotto/blob/master/R/clustering.R#L41

You might want to open up this issue here: https://github.com/RubD/Giotto

Thanks, Evan