scikit-tda/ripser.py

`ValueError: numpy.ndarray size changed`

galenseilis opened this issue · 7 comments

On Ubuntu (current LTS) the command pip install scikit-tda appeared to work without error. However running the import for ripser gives a value error.

>>> import ripser
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/galen/.local/lib/python3.8/site-packages/ripser/__init__.py", line 1, in <module>
    from .ripser import *
  File "/home/galen/.local/lib/python3.8/site-packages/ripser/ripser.py", line 34, in <module>
    from pyRipser import doRipsFiltrationDM as DRFDM
  File "ripser/pyRipser.pyx", line 1, in init pyRipser
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I got the same error. Any updates on this?

Thanks for responding! I tried that, still not working. I'm running on an M1 chip, could that be part of the issue?

What I'd do is create an entirely new environment in conda and make ripser.py the first thing you install there

https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html