Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: numpy.ndarray size changed #141

Closed
galenseilis opened this issue Mar 17, 2022 · 7 comments
Closed

ValueError: numpy.ndarray size changed #141

galenseilis opened this issue Mar 17, 2022 · 7 comments
Assignees
Labels
bug dependencies Pull requests that update a dependency file

Comments

@galenseilis
Copy link

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
@ZWAdams
Copy link

ZWAdams commented Jun 22, 2022

I got the same error. Any updates on this?

@ctralie
Copy link
Member

ctralie commented Jun 23, 2022 via email

@ZWAdams
Copy link

ZWAdams commented Jun 23, 2022

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

@ctralie
Copy link
Member

ctralie commented Aug 16, 2022

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

@ctralie
Copy link
Member

ctralie commented Oct 11, 2022 via email

@catanzaromj catanzaromj self-assigned this Jul 6, 2024
@catanzaromj catanzaromj added dependencies Pull requests that update a dependency file bug labels Jul 6, 2024
@catanzaromj
Copy link
Contributor

It's unclear if this is still a bug or not. I can't reproduce it. Regardless, we'll compile ripser with numpy 2.0.0, so that should provide another fix for this problem.

@catanzaromj
Copy link
Contributor

Closing as I can't reproduce. Re-open if it is still a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

4 participants