stevengj / nlopt

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

Numpy 2.0 compatibility #557

Closed PaulJonasJost closed 3 weeks ago

PaulJonasJost commented 4 months ago

Hello,

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

stevengj commented 4 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 4 months ago

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