Skip to content

Support for numpy version >= 2 #60

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

Open
bzindovic opened this issue Sep 28, 2024 · 1 comment
Open

Support for numpy version >= 2 #60

bzindovic opened this issue Sep 28, 2024 · 1 comment

Comments

@bzindovic
Copy link

For now, it seems that pydsstools works with numpy < 2 and I have to downgrade numpy to 1.26.4 (it seems to be the last working for me). As Numpy version 2 introduces some breaking changes, are there any plan to support it?

@bzindovic
Copy link
Author

For reference, these are the steps to reproduce this problem:

import pydsstools
from pydsstools.heclib.dss import HecDss

and got this as output:

  File "<stdin>", line 1, in <module>
  File "C:\py311\Lib\site-packages\pydsstools\heclib\dss\HecDss.py", line 15, in <module>
    from ...core import Open as _Open
  File "C:\py311\Lib\site-packages\pydsstools\core\__init__.py", line 28, in <module>
    from .._lib import *
  File "C:\py311\Lib\site-packages\pydsstools\_lib\__init__.py", line 1, in <module>
    from .x64 import core_heclib
  File "pydsstools\src\core_heclib.pyx", line 1, in init pydsstools._lib.x64.core_heclib
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

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

1 participant