`ValueError: numpy.ndarray size changed`
galenseilis opened this issue · 7 comments
galenseilis commented
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 commented
I got the same error. Any updates on this?
ctralie commented
Try to run
pip install --upgrade numpy
…On Wed, Jun 22, 2022 at 7:48 PM ZWAdams ***@***.***> wrote:
I got the same error. Any updates on this?
—
Reply to this email directly, view it on GitHub
<#141 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJWDZR7UJ4LSLZVBAUFMN3VQOQ5DANCNFSM5Q5ZT3TQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
ZWAdams commented
Thanks for responding! I tried that, still not working. I'm running on an M1 chip, could that be part of the issue?
ctralie commented
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 commented
My gut says no, but I'm honestly not sure. I will look into this as soon
as I can. Sorry for the trouble!
…On Wed, Jun 22, 2022 at 9:50 PM ZWAdams ***@***.***> wrote:
Thanks for responding! I tried that, still not working. I'm running on an
M1 chip, could that be part of the issue?
—
Reply to this email directly, view it on GitHub
<#141 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJWDZRXEGKESN2WMDZNNMLVQO7E7ANCNFSM5Q5ZT3TQ>
.
You are receiving this because you commented.Message ID:
***@***.***>