Closed Emiri-W closed 12 months ago
The leidenalg
Python package is now separate from C++ core, which is implemented as a separate C++ library at https://github.com/vtraag/libleidenalg. The error you see indicates it cannot find the C++ library anywhere.
In principle, you should be able to compile the libleidenalg
C++ core yourself, the steps are provided here, with some scripts to facilitate the build process. However, there should have been binary wheels on PyPI. For some reason however, the aarch64
wheels have not been uploaded to PyPI, even if they were correctly build. You could get the binary wheel directly from the build artifacts (see "artifacts" down below, the file contains all binary wheels). I'll look into this to correct this to make sure there's a binary wheel directly available from PyPI.
The GHA automatic upload to PyPI is now solved in b994319dca240ab59e4fd65e8a0e0eef3c4b286a. It turned out that I missed a dependency on aarch64
, so the upload to PyPI was triggered before the upload.
I've now also manually uploaded the aarch64
packages, so you should now not need to install it from source anymore, and can just install a binary directly.
I really appreciate you for solving my problem. I couldn't understand how to import the C++ core by myself because I am a beginner, but you fixed my problem in the last comment. Thank you.
I am having the same problem while installing your louvain packages using pip install louvain
.
I understand you are not maintaining that package anymore, but I am using scanpy==1.11.1
and when I try to use scanpy.tl.louvain
, it says ModuleNotFoundError: No module named 'louvain'
. Could you please help me?
Could you please open a separate issue for this in the louvain repository at https://github.com/vtraag/louvain-igraph? I'm not sure if I'll solve it, but I can take a closer look.
Thank you very much for your kindness. I posted the new issue here: https://github.com/vtraag/louvain-igraph/issues/64
I try to install leidenalg using
pip install leidenalg
and it sayslegacy-install-failure
. I tried installing the leidenalg version 0.8.10 (runpip install leidenalg==0.8.10
), and I was able to install it, but I cannot install the new version.I am using docker (docker image python:1-3.8-bookworm) with VScode extention.
Below is the whole error message that I get when I try to update the version of leidenalg.