-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
AttributeError: np.sctypes was removed in NumPy 2.0 release #859
Comments
This works for me. Thanks for your help! |
This worked for me as well ! Thanks ! |
PuchatekwSzortach
added a commit
to PuchatekwSzortach/imgaug
that referenced
this issue
Nov 29, 2024
Modified to work with new numpy versions, see aleju#859 (comment)
1 task
ranshadmi
added a commit
to ranshadmi/imgaug
that referenced
this issue
Mar 9, 2025
Fixed the `AttributeError: np.sctypes was removed in NumPy 2.0 release` according to aleju#859.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the latest release of NumPy (2.0), the
np.sctypes
attribute has been removed. As a result, the following code in theimgaug
library causes anAttributeError
:This issue can be found in the following link:
Problematic code
I think modifying the code to directly reference NumPy's dtypes instead of using
np.sctypes
. For example:Feel free to fill in the Python version and operating system, then copy and paste this into a new issue on the GitHub repository. Let me know if you need any more help!
The text was updated successfully, but these errors were encountered: