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, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject #149

Open
Audrique opened this issue Apr 17, 2023 · 1 comment

Comments

@Audrique
Copy link

I used ripser last year and it worked. Today, I wanted to use ripser again, however, it gave me the above error. I tried upgrading/reinstalling both ripser and numpy. Doing so gave me the error:
"ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
daal4py 2021.6.0 requires daal==2021.4.0, which is not installed.
numba 0.55.1 requires numpy<1.22,>=1.18, but you have numpy 1.24.2 which is incompatible."

I guess this means that ripser needs numpy 1.18 and is not compatible with numpy 1.24.2 yet?

@catanzaromj
Copy link
Contributor

It appears that your current environment has numpy == 1.24.2 but numba 0.55.1 requires numpy < 1.22. You can try downgrading your version of numpy with something like pip install --force-reinstall -v "numpy<1.22". I would also recommend using dedicated environments for projects with conda or virtualenv in case you're not already doing so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants