heitzmann / gdstk

Gdstk (GDSII Tool Kit) is a C++/Python library for creation and manipulation of GDSII and OASIS files.
https://heitzmann.github.io/gdstk/
Boost Software License 1.0
324 stars 78 forks source link

incompatible with numpy 2 (I think) #256

Closed nmz787-intel closed 1 week ago

nmz787-intel commented 4 weeks ago
.tox/waldo/lib/python3.9/site-packages/gdstk/__init__.py:1: in <module>
    from ._gdstk import *
E   ImportError: numpy.core.multiarray failed to import
------------------------------- Captured stderr --------------------------------

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

File ".tox/waldo/lib/python3.9/site-packages/gdstk/__init__.py", line 1, in <module>
    from ._gdstk import *
AttributeError: _ARRAY_API not found
heitzmann commented 3 weeks ago

Working on it: https://github.com/heitzmann/gdstk/commit/f8dc01c6b637996ca9e7a65772da133c04a9b70f