Open vibincwilson opened 1 week ago
@vibincwilson Until the new version 4.0.9 which should ideally have numpy updated. use the below to proceed further.
Add np.float = float above the below line in your environment.py.
image_attachments.set_attachments_condition(context, AttachmentsCondition.ALWAYS)
Hope this helps :)
ERROR:root:[behavex-images] The provided binary is not a valid image, or could not be converted to PNG: module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecationsI have library numpy 2.1.3