You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError Traceback (most recent call last)
in
----> 1 from localgraphclustering import *
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/init.py in
----> 1 from .GraphLocal import GraphLocal
2 from .GraphDrawing import GraphDrawing
3 from .fiedler import fiedler, fiedler_local
4 from .approximate_PageRank import approximate_PageRank
5 from .approximate_PageRank_weighted import approximate_PageRank_weighted
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/GraphLocal.py in
8 import warnings
9 import collections as cole
---> 10 from .cpp import *
11 import random
12
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/cpp/init.py in
41 from .MQI_cpp import *
42 from .proxl1PRaccel import *
---> 43 from .proxl1PRrand_cpp import *
44 from .SimpleLocal_cpp import *
45 from .sweepcut_cpp import *
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.
use python3.7 and MacOS env
AttributeError Traceback (most recent call last)
in
----> 1 from localgraphclustering import *
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/init.py in
----> 1 from .GraphLocal import GraphLocal
2 from .GraphDrawing import GraphDrawing
3 from .fiedler import fiedler, fiedler_local
4 from .approximate_PageRank import approximate_PageRank
5 from .approximate_PageRank_weighted import approximate_PageRank_weighted
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/GraphLocal.py in
8 import warnings
9 import collections as cole
---> 10 from .cpp import *
11 import random
12
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/cpp/init.py in
41 from .MQI_cpp import *
42 from .proxl1PRaccel import *
---> 43 from .proxl1PRrand_cpp import *
44 from .SimpleLocal_cpp import *
45 from .sweepcut_cpp import *
~/anaconda3/lib/python3.7/site-packages/localgraphclustering/cpp/proxl1PRrand_cpp.py in
50
51 _graphlib_funs_proxl1PRrand64 = _setup_proxl1PRrand_args(
---> 52 'int64','int64', _graphlib.proxl1PRrand64)
53 _graphlib_funs_proxl1PRrand32 = _setup_proxl1PRrand_args(
54 'uint32','uint32', _graphlib.proxl1PRrand32)
~/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
The text was updated successfully, but these errors were encountered: