sknetwork-team / scikit-network

Graph Algorithms
Other
602 stars 67 forks source link

Cannot load package #523

Closed jhammarstedt closed 2 years ago

jhammarstedt commented 2 years ago

Description

Importing sknetwork yields:

>>> import sknetwork
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/envs/new1/lib/python3.9/site-packages/sknetwork/__init__.py", line 9, in <module>
    import sknetwork.topology
  File "/opt/conda/envs/new1/lib/python3.9/site-packages/sknetwork/topology/__init__.py", line 2, in <module>
    from sknetwork.topology.kcliques import Cliques
  File "sknetwork/topology/kcliques.pyx", line 1, in init sknetwork.topology.kcliques
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Any ideas what may cause this?

jhammarstedt commented 2 years ago

Oh it just turned out to just be a numpy error, closing this.

KeironO commented 2 years ago

@jhammarstedt how was you able to fix this?

KeironO commented 2 years ago

Ok, so if you run:

pip install -I --upgrade numpy --force

It should fix it.

jhammarstedt commented 2 years ago

Yes I just upgraded numpy and then it worked fine! @KeironO