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
Describe the bug
A clear and concise description of what the bug is.
While importing the library, this error happens:
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
so I did following command to downgrade numpy and install k_means_constrained again:
Minimum working example
Code and minimum data to reproduce the error. The example should be copy and pastable to reproduce the problem:
from k_means_constrained import KMeansConstrained
Versions:
Python: 3.9.7
Operating system: [MacOS]
k-means-constrained: 0.7.2
numpy:1.23.4
scipy:1.7.3
ortools:9.4.1874
joblib:1.1.0
cython (if installed):0.29.24
I installed k_means_constrained which upgraded numpy to 1.23.4 and when importing k_means_constrained created
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
so I did following command to downgrade numpy and install k_means_constrained again:
!pip uninstall numpy -y
!conda install -y -c conda-forge numpy
!pip uninstall k_means_constrained -y
!pip install k_means_constrained --no-binary k_means_constrained
right now I have k-means-constrained-0.7.2, numpy to 1.23.4 and still same error. even changed to k-means-constrained-0.7.0 and numpy to 1.21.5 still same error I have this issue on my Apple M1 pro, Anaconda environment, Python 3.9.7.
Any advice?
The text was updated successfully, but these errors were encountered:
manamhr
changed the title
[BUG]
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Nov 8, 2022
Describe the bug
A clear and concise description of what the bug is.
While importing the library, this error happens:
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
so I did following command to downgrade numpy and install k_means_constrained again:
Minimum working example
Code and minimum data to reproduce the error. The example should be copy and pastable to reproduce the problem:
from k_means_constrained import KMeansConstrained
Versions:
I installed k_means_constrained which upgraded numpy to 1.23.4 and when importing k_means_constrained created
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
so I did following command to downgrade numpy and install k_means_constrained again:
!pip uninstall numpy -y
!conda install -y -c conda-forge numpy
!pip uninstall k_means_constrained -y
!pip install k_means_constrained --no-binary k_means_constrained
right now I have k-means-constrained-0.7.2, numpy to 1.23.4 and still same error. even changed to k-means-constrained-0.7.0 and numpy to 1.21.5 still same error I have this issue on my Apple M1 pro, Anaconda environment, Python 3.9.7.
Any advice?
The text was updated successfully, but these errors were encountered: