taynaud / python-louvain

Louvain Community Detection
BSD 3-Clause "New" or "Revised" License
965 stars 200 forks source link

failed to install python-louvain on osx 11.6 #87

Closed drighelli closed 2 years ago

drighelli commented 3 years ago

Hi,

I'm trying to install louvain after an upgrade to osx 11.6 with pip3 install louvain, but even if igraph and wheel are already installed

% pip3 install wheel 
Requirement already satisfied: wheel in ./vespagcn/lib/python3.9/site-packages (0.37.0)
% pip3 install igraph               
Requirement already satisfied: igraph in ./vespagcn/lib/python3.9/site-packages (0.1.14)

I'm getting these errors:

    1 error generated.
    make[3]: *** [libigraph_la-community_leiden.lo] Error 1
    make[2]: *** [all] Error 2
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    Could not compile the C core of igraph.
 ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/inzirio/Downloads/vespagcn/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3b/2z91xnmx6vq99jc862r_5xn40000gn/T/pip-install-bxkksgb2/louvain_c62e8a2aedd74078aee723ec8f87b5ce/setup.py'"'"'; __file__='"'"'/private/var/folders/3b/2z91xnmx6vq99jc862r_5xn40000gn/T/pip-install-bxkksgb2/louvain_c62e8a2aedd74078aee723ec8f87b5ce/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/3b/2z91xnmx6vq99jc862r_5xn40000gn/T/pip-record-pov5bwf2/install-record.txt --single-version-externally-managed --compile --install-headers /Users/inzirio/Downloads/vespagcn/include/site/python3.9/louvain Check the logs for full command output.

Do you have any suggestions?

Thanks

mythrandire commented 3 years ago

Disclaimer - not an OSX user, but see if this works for you?

taynaud commented 2 years ago

This package does not depend on igraph and is called python-louvain, this issue is not from this package but maybe from https://github.com/vtraag/louvain-igraph ?