conda-forge / louvain-feedstock

A conda-smithy repository for louvain.
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

ModuleNotFoundError: No module named 'louvain' #25

Open spkhowe opened 2 years ago

spkhowe commented 2 years ago

Hi @vgauthier, @vtraag,

I noticed this package seemed to have disappeared from conda:

 conda search louvain --channel conda-forge

Loading channels: done
No match found for: louvain. Search: *louvain*
# Name                       Version           Build  Channel
python-louvain                   0.1            py_0  conda-forge
python-louvain                  0.10            py_0  conda-forge
python-louvain                  0.11            py_0  conda-forge
python-louvain                  0.13            py_0  conda-forge
python-louvain                  0.13            py_0  pkgs/main
python-louvain                  0.14            py_0  pkgs/main
python-louvain                  0.15    pyhd3deb0d_0  conda-forge
python-louvain                  0.15    pyhd3eb1b0_0  pkgs/main
python-louvain                  0.15    pyhd8ed1ab_1  conda-forge

Any ideas? In case it's relevant, I'm on an M1 mac.

active environment : py39 active env location : /Users/stephaniehowe/miniconda3/envs/py39 shell level : 2 user config file : /Users/stephaniehowe/.condarc populated config files : /Users/stephaniehowe/.condarc /Users/stephaniehowe/miniconda3/envs/py39/.condarc conda version : 4.14.0 conda-build version : 3.22.0 python version : 3.9.12.final.0 virtual packages : __osx=12.0=0 __unix=0=0 __archspec=1=arm64 base environment : /Users/stephaniehowe/miniconda3 (writable) conda av data dir : /Users/stephaniehowe/miniconda3/etc/conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/osx-arm64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/osx-arm64 https://repo.anaconda.com/pkgs/r/noarch package cache : /Users/stephaniehowe/miniconda3/pkgs /Users/stephaniehowe/.conda/pkgs envs directories : /Users/stephaniehowe/miniconda3/envs /Users/stephaniehowe/.conda/envs platform : osx-arm64 user-agent : conda/4.14.0 requests/2.27.1 CPython/3.9.12 Darwin/21.0.1 OSX/12.0 UID:GID : 501:20 netrc file : /Users/stephaniehowe/.netrc offline mode : False
vtraag commented 2 years ago

Please note that this feedstock is for the louvain package (sometimes louvain-igraph), not python-louvain. In addition, note that the louvain-igraph package is superseded by the leidenalg package (also available from conda-forge).

It would probably be better to open an issue in the feedstock for python-louvain.

vtraag commented 2 years ago

I'll close this for now. If you do come across issues with the louvain package, feel free to report back.

vtraag commented 2 years ago

Ah, sorry, I just took another look, but I now understand that you probably intend to say that it only lists python-louvain and not louvain in your search results?

The package hasn't disappeared though: https://anaconda.org/conda-forge/louvain/files

The problem seems to be that you are on macOS arm64, for which no package has been build. Building for that platform is going to be difficult though. The louvain package is also not further maintained anymore, and so I would suggest to switch to the leidenalg package.