I have an app that has been deployed for a while on streamlit with no issues:
Recently I received the error below out of nowhere. It works fine locally and I even changed my requirements.txt file use numpy 1.19.2, so I am not sure why it is still referencing 1.20.
Can someone please assist with this? The link to the repository is:
AttributeError: module ‘numpy’ has no attribute ‘bool’.
np.bool was a deprecated alias for the builtin
bool. To avoid this error in existing code, use
bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
NumPy 1.20.0 Release Notes — NumPy v1.25.dev0 Manual