AttributeError: np.sctypes was removed in NumPy 2.0 release
Author: RobotgodwarCreated May 29, 2026Updated May 29, 2026
In the latest release of NumPy (2.0), the np.sctypes attribute has been removed. As a result, the following code in the imgaug library causes an AttributeError:
Source: Yalantis/uCrop