-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Wheels compatible with Numpy 2.0 #2389
Comments
Yes, we also use it to put our wheels for Numpy 2.0. You will need to do a request to scientific-python community if you would like to upload the one for cvxpy. Thank you for your feedback. |
Some updates on this. I tried testing with Numpy 2.0 but I also get the following error:
I first got the nightly build from scipy which created some conflicts with OSQP (since it requires scipy <=1.12). @phschiele @PTNobel any thoughts on this issue? I am not too familiar with the process of creating new wheels for cvxpy. |
@Transurgeon did you try deleting artifacts before installing cvxpy locally? |
No, I am not sure what artefacts are and where to delete them. Also when I'm installing cvxpy locally, the nightly NumPy version I installed gets overridden by the |
@Transurgeon @PTNobel this issue might be related to the numpy swig interface file we use: https://github.com/cvxpy/cvxpy/blob/master/cvxpy/cvxcore/python/numpy.i. Perhaps we need an updated version of this file? |
@skoudoro Some more updates. I was able to generate wheels for cvxpy with the nightly version of NumPy and SciPy (see my PR linked above). |
Great ! Thank you for the update @Transurgeon!
we use the
ok, I might try later this week |
FWIW, I'm encountering compilation errors with cxpy 1.5.1 against numpy 2.0.0rc2:
|
I believe the current plan is:
|
The release candidates are as stable as you can hope for, the only reason they're not GA is to allow projects to prepare, rather than break the world. So I would recommend quite highly to publish 1.5.2 already based on numpy 2.0.0rc2. |
Hi
cvxpy
Team,Do you have any wheels compatible with the future numpy 2.0 ?
Currently, when I compile my package with Numpy 2.0.0dev and try to run it with
cvxpy
, I encounter the following error:Numpy 2.0 is coming and I would like to make sure everything will be smooth with the transition.
Any advice will be welcomed.
Thanks !
The text was updated successfully, but these errors were encountered: