LocalGraphClustering
LocalGraphClustering copied to clipboard
import error
use python3.7 and MacOS env
AttributeError Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/init.py in
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/GraphLocal.py in
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/cpp/init.py in
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/cpp/proxl1PRrand_cpp.py in
~/anaconda3/lib/python3.7/ctypes/init.py in getattr(self, name) 367 if name.startswith('') and name.endswith(''): 368 raise AttributeError(name) --> 369 func = self.getitem(name) 370 setattr(self, name, func) 371 return func
~/anaconda3/lib/python3.7/ctypes/init.py in getitem(self, name_or_ordinal) 372 373 def getitem(self, name_or_ordinal): --> 374 func = self._FuncPtr((name_or_ordinal, self)) 375 if not isinstance(name_or_ordinal, int): 376 func.name = name_or_ordinal
Try to run this using Python 3.6. I didn't test it on python 3.7.
This looks to me like the C++ library wasn't installed correctly because it's failing when gettin the function pointer. Make sure you compile it (bin/createGraphLibFile.sh) and then install. I verified that this does work with python 3.7 and macOS using the Home-brew python.