Hi there. I’m having problems running the following code:
from graph_tool.all import *
g = collection.ns["ego_social/facebook_combined"]
state = minimize_blockmodel_dl(g)
I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vargonis/miniconda3/envs/langchain/lib/python3.11/site-packages/graph_tool/inference/minimize.py", line 128, in minimize_blockmodel_dl
state = state(g, **state_args)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/vargonis/miniconda3/envs/langchain/lib/python3.11/site-packages/graph_tool/inference/blockmodel.py", line 239, in __init__
B = min(B, self.g.num_vertices())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vargonis/miniconda3/envs/langchain/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 2953, in min
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vargonis/miniconda3/envs/langchain/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 88, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
numpy.exceptions.AxisError: axis 4039 is out of bounds for array of dimension 0
Here’s what I believe is the relevant info, from conda list
:
graph-tool 2.56 py311h35b2f40_0 conda-forge
graph-tool-base 2.56 py311ha6c7e1a_0 conda-forge
I believe this is a bug, because I get the same error with a fresh conda environment (only graph tool installed). Or is it somehow an incompatibility with python 3.11?