The v3.0.0 version of cxroots is unfortunately not compatible with numpy v2. For example:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cxroots/__init__.py", line 1, in <module>
from .contours.annulus import Annulus
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cxroots/contours/annulus.py", line 5, in <module>
from ..contour import Contour
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cxroots/contour.py", line 8, in <module>
from .contour_interface import ContourABC
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cxroots/contour_interface.py", line 5, in <module>
from .types import AnalyticFunc, Color, IntegrationMethod
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/cxroots/types.py", line 8, in <module>
ScalarOrArray = Union[complex, float, npt.NDArray[np.complex_], npt.NDArray[np.float_]] # noqa: UP007
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/numpy/__init__.py", line 397, in __getattr__
raise AttributeError(
AttributeError: `np.complex_` was removed in the NumPy 2.0 release. Use `np.complex[12](https://github.com/rparini/cxroots/actions/runs/10066096425/job/27826780043#step:5:13)8` instead.. Did you mean: 'complex64'?