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: No module named 'louvain' #25

Open
spkhowe opened this issue Sep 26, 2022 · 3 comments
Open

ModuleNotFoundError: No module named 'louvain' #25

spkhowe opened this issue Sep 26, 2022 · 3 comments

Comments

@spkhowe
Copy link

spkhowe commented Sep 26, 2022

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
Copy link
Contributor

vtraag commented Oct 5, 2022

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
Copy link
Contributor

vtraag commented Oct 5, 2022

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

@vtraag vtraag closed this as completed Oct 5, 2022
@vtraag vtraag reopened this Oct 5, 2022
@vtraag
Copy link
Contributor

vtraag commented Oct 5, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants