-
-
Notifications
You must be signed in to change notification settings - Fork 45.7k
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
Migrate to numpy 2.0 #11320
Comments
@cclauss I think this rule is already checked and satisfied. Command
does not show any violations. And in https://docs.astral.sh/ruff/rules/#numpy-specific-rules-npy I do not see any specific signs near |
Are there other tasks required to complete the upgrade? |
As I understand, experiment in #11340 shows that some packages ( |
I truly wish you a good luck |
In which folder were the problems or show how to run all tests? I want to see what the problems are. In June I did a PR in statsmodels, they had one build numpy version --- 2.1.0.dev0 and there were no failures. I don't know about the current time. |
From |
After installation: I receive the following warnings:
There are a few files where the tests fail, but there are no errors, and the following is printed:
Files in which tests do not run(numpy 2.0.1): Usually there is tensorflow there(I'm not exactly sure, but I'll assume that the reason is tensorflow). And there are many test failures where numbers do not match when printed in the new numpy (the number is printed with the type). Example: FAILURES:
I can fix it (this does not apply to the five files I listed above):
Thoughts? |
My vote would be
|
v2.1.0 was just released https://pypi.org/project/numpy/#history |
Unable to launch: 'Getting requirements to build wheel did not run successfully'. I see a line with statsmodels. Although in their requirements.txt: numpy>=1.22.3,<3 . I tried to return numpy-1.26.4 to requirements.txt, it works. In general, it is not clear yet what to do.? Update 20.08.2024 So I found the ecosystem numpy 2.0 table. Judging by it, keras and tensorflow are not marked in it. Last thing I tried: numpy>=2.0.0, matplotlib>=3.8.4, opencv-python>=4.10.0.84, pandas>=2.2.2, scikit-learn>=1.4.2, statsmodels>=0.14.2. Which didn't work. |
sir please assign me this task i would work on it |
https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md#issues
|
Of all that is missing, it is the same tensorflow. They already have nightly builds with NumPy 2.0 support. But, it is somehow difficult to install this build. Probably 2.18.0 is coming soon. But I see the tests have already been fixed. |
Fixed in #11588 Our GitHub Actions
We disabled |
Feature description
The beta release of numpy is now available so we should run the appropriate
ruff
command and ensure our algorithms are compatible... https://numpy.org/devdocs/numpy_2_0_migration_guide.html@MaximSmolskiy
The text was updated successfully, but these errors were encountered: