stevengj / nlopt

library for nonlinear optimization, wrapping many algorithms for global and local, constrained or unconstrained, optimization
Other
1.86k stars 574 forks source link

Numpy 2.0 compatibility #557

Open PaulJonasJost opened 3 months ago

PaulJonasJost commented 3 months ago

Hello,

NLopt seems not to be compatible with numpy 2.0 yet (see this CI).

stevengj commented 3 months ago

It looks like that's just a build thing — on the CI machine, it's apparently building/linking with numpy 1, but then at runtime Python is pulling in numpy 2, which is incompatible.

Hopefully if you build nlopt with numpy 2 it should be fine?

jschueller commented 3 months ago

yes, wheels just need a rebuild: https://github.com/DanielBok/nlopt-python/issues/35