Skip to content
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

Incompatibility with numpy 2.0 #3308

Closed
julvez opened this issue Jul 5, 2024 · 2 comments
Closed

Incompatibility with numpy 2.0 #3308

julvez opened this issue Jul 5, 2024 · 2 comments

Comments

@julvez
Copy link

julvez commented Jul 5, 2024

Hi!

The following imports (last versions of both pyomo and numpy):

import numpy
import pyomo

yield the following error:

AttributeError: np.float_ was removed in the NumPy 2.0 release. Use np.float64 instead.. Did you mean: 'float16'?

Best,
Jorge

@michaelw924
Copy link

I second this issue, but looks like it was already discussed here...

#3290

@mrmundt
Copy link
Contributor

mrmundt commented Jul 8, 2024

@julvez - Thanks for submitting this. If you are on a released version (e.g., if you installed from conda or pypi), then you do not have the latest updates. We added numpy2 compatibility in #3292 but have not yet released a new full version of Pyomo.

In the future, please use the template provided. In particular, we need answers to the following:


Information on your system

Pyomo version:
Python version:
Operating system:
How Pyomo was installed (PyPI, conda, source):
Solver (if applicable):

@jsiirola jsiirola closed this as completed Jul 8, 2024
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

4 participants