cdlib: binary incompatibility C and python

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  • CDlib version: latest from pip
  • Operating System: OsX: 10.15.7
  • Python version: 3.8.8
  • Version(s) of CDlib required libraries
from cdlib import algorithms
# requires
# brew install libom
import networkx as nx

G = nx.karate_club_graph()
coms = algorithms.infomap(G)
# fails with:
# ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Same here, works like a charm

everything is working now, thank you for the quick fix @GiulioRossetti 😃

There should be a mistake in one of the configuration files then - that’s the lack of sleep having the upper end on me 😃

My bad, I’ll fix it ASAP.

Now latest version for dynetx is 0.3.0 (already available on pypi, conda pending)

adding some context from other answers I’ve seen, apparently, numpy >=1.20.0 solves this but cdlib requires 1.18.0

Hi, do you have by any chance a new Mac with a Mac silicon (M1) chip ? I got a similar error on a different tool with those chips