DigitalSlideArchive / HistomicsTK

A Python toolkit for pathology image analysis algorithms.
https://digitalslidearchive.github.io/HistomicsTK/
Apache License 2.0
393 stars 117 forks source link

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 80 from PyObject #964

Closed DDxk369 closed 1 year ago

DDxk369 commented 1 year ago

Dear Author: Thank you for designing HistomicsTK, it helps me a lot, but when I run it on COLAB, I find the following error:

ValueError                                Traceback (most recent call last)
[<ipython-input-14-8893688ebfc1>](https://localhost:8080/#) in <module>
----> 1 import histomicstk as htk
      2 
      3 import numpy as np
      4 import scipy as sp
      5 

3 frames
[/usr/local/lib/python3.8/dist-packages/histomicstk/segmentation/label/trace_object_boundaries.py](https://localhost:8080/#) in <module>
      1 import numpy as np
      2 
----> 3 from ._trace_object_boundaries_cython import _trace_object_boundaries_cython
      4 
      5 

_trace_object_boundaries_cython.pyx in init histomicstk.segmentation.label._trace_object_boundaries_cython()

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 80 from PyObject
  I tried to change a different version of numpy, but it still doesn't work. Can you help me?
jdvylder commented 1 year ago

this seemed to work for me pip install histomicstk --no-binary histomicstk