conda-forge / conda-forge/leidenalg-feedstock

ModuleNotFoundError: No module named 'leidenalg'

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Solution to issue cannot be found in the documentation.

- [X] I checked the documentation.

### Issue

hi,
when i run this code:
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](https://user-images.githubusercontent.com/72066151/158738342-41dde3b9-01b5-43b2-8d0d-3fd7090976c8.png)

And using conda, i found this: leidenalg is there!!!
![image](https://user-images.githubusercontent.com/72066151/158738811-fbfa3f49-0257-4b0e-9dfd-3cc8e96e50f2.png)

And then i tried this : Although leidenalg , pandas AND pillow is in my evrironment,but only pandas could be uesed.
![image](https://user-images.githubusercontent.com/72066151/158742932-66e17c48-9376-4e68-b69b-9d5cb5317c69.png)

Could you please help sovle this problem?

### Installed packages

```shell
(giotto_env) C:\Users\yll>conda list
# packages in environment at C:\Users\yll\.conda\envs\giotto_env:
#
# Name Version Build Channel
bzip2 1.0.8 h8ffe710_4 conda-forge
ca-certificates 2021.10.8 h5b45459_0 conda-forge
certifi 2021.5.30 py36ha15d459_0 conda-forge
cycler 0.11.0 pyhd8ed1ab_0 conda-forge
freetype 2.10.4 h546665d_1 conda-forge
glpk 4.65 h8ffe710_1004 conda-forge
igraph 0.9.6 h29cbd77_0 conda-forge
intel-openmp 2022.0.0 h57928b3_3663 conda-forge
jbig 2.1 h8d14728_2003 conda-forge
joblib 1.1.0 pyhd8ed1ab_0 conda-forge
jpeg 9e h8ffe710_0 conda-forge
kiwisolver 1.3.1 py36he95197e_1 conda-forge
lcms2 2.12 h2a16943_0 conda-forge
leidenalg 0.8.7 py36h6111442_0 conda-forge
lerc 3.0 h0e60522_0 conda-forge
libblas 3.9.0 13_win64_mkl conda-forge
libcblas 3.9.0 13_win64_mkl conda-forge
libdeflate 1.10 h8ffe710_0 conda-forge
libffi 3.4.2 h8ffe710_5 conda-forge
libiconv 1.16 he774522_0 conda-forge
liblapack 3.9.0 13_win64_mkl conda-forge
liblapacke 3.9.0 13_win64_mkl conda-forge
libpng 1.6.37 h1d00b33_2 conda-forge
libtiff 4.3.0 hc4061b1_3 conda-forge
libxml2 2.9.12 hf5bbc77_1 conda-forge
libzlib 1.2.11 h8ffe710_1013 conda-forge
lz4-c 1.9.3 h8ffe710_1 conda-forge
m2w64-gcc-libgfortran 5.3.0 6 conda-forge
m2w64-gcc-libs 5.3.0 7 conda-forge
m2w64-gcc-libs-core 5.3.0 7 conda-forge
m2w64-gmp 6.1.0 2 conda-forge
m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge
matplotlib-base 3.3.4 py36h1abdf75_0 conda-forge
mkl 2022.0.0 h0e2418a_796 conda-forge
mpir 3.0.0 he025d50_1002 conda-forge
msys2-conda-epoch 20160418 1 conda-forge
networkx 2.6.3 pyhd8ed1ab_1 conda-forge
numpy 1.19.5 py36h4b40d73_2 conda-forge
olefile 0.46 pyh9f0ad1d_1 conda-forge
openjpeg 2.4.0 hb211442_1 conda-forge
openssl 3.0.0 h8ffe710_2 conda-forge
pandas 1.1.5 py36he38d939_0 conda-forge
pillow 8.3.2 py36h10c25d6_0 conda-forge
pip 21.2.2 py36haa95532_0
pyparsing 3.0.7 pyhd8ed1ab_0 conda-forge
python 3.6.15 h39d44d4_0_cpython conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python-igraph 0.9.6 py36h5d6bbea_0 conda-forge
python-louvain 0.15 pyhd8ed1ab_1 conda-forge
python_abi 3.6 2_cp36m conda-forge
pytz 2021.3 pyhd8ed1ab_0 conda-forge
scikit-learn 0.24.2 py36h5a2dbc3_1 conda-forge
scipy 1.5.3 py36h27d303f_1 conda-forge
setuptools 58.0.4 py36haa95532_0
six 1.16.0 pyh6c4a22f_0 conda-forge
sqlite 3.37.0 h8ffe710_0 conda-forge
suitesparse 5.4.0 h5d0cbe0_1 conda-forge
tbb 2021.5.0 h2d74725_0 conda-forge
texttable 1.6.4 pyhd8ed1ab_0 conda-forge
threadpoolctl 3.1.0 pyh8a188c0_0 conda-forge
tk 8.6.12 h8ffe710_0 conda-forge
tornado 6.1 py36h68aa20f_1 conda-forge
tzdata 2021e he74cb21_0 conda-forge
ucrt 10.0.20348.0 h57928b3_0 conda-forge
vc 14.2 hb210afc_6 conda-forge
vs2015_runtime 14.29.30037 h902a5da_6 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
wincertstore 0.2 py36h7fe50ca_0
xz 5.2.5 h62dcd97_1 conda-forge
zlib 1.2.11 h8ffe710_1013 conda-forge
zstd 1.5.2 h6255e5f_0 conda-forge
```

### Environment info

```shell
(giotto_env) C:\Users\yll>conda info

active environment : giotto_env
active env location : C:\Users\yll\.conda\envs\giotto_env
shell level : 1
user config file : C:\Users\yll\.condarc
populated config files : C:\Users\yll\.condarc
conda version : 4.10.3
conda-build version : 3.21.6
python version : 3.9.7.final.0
virtual packages : __cuda=11.2=0
__win=0=0
__archspec=1=x86_64
base environment : C:\ProgramData\Anaconda3 (read only)
conda av data dir : C:\ProgramData\Anaconda3\etc\conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\ProgramData\Anaconda3\pkgs
C:\Users\yll\.conda\pkgs
C:\Users\yll\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\yll\.conda\envs
C:\ProgramData\Anaconda3\envs
C:\Users\yll\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.10.3 requests/2.26.0 CPython/3.9.7 Windows/10 Windows/10.0.19042
administrator : False
netrc file : None
offline mode : False
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.