'numpy' has no attribute 'bool' in sepal.io

18 views
Skip to first unread message

falte...@gmail.com

unread,
Mar 13, 2023, 5:32:57 PM3/13/23
to Sepal Users
Hello .

I am running Sbae point analysis

Using notebook called
02_extract_ts.ipynb

I get this new error

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 `np.bool_` 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#deprecations

It was running normaly two months ago in sepal.io

Should I install something?

Regards

Andreas Vollrath

unread,
Mar 14, 2023, 4:50:46 AM3/14/23
to Sepal Users
Dear sepal user, 

as a temporary fix you could run pip install --user numpy==1.20.

I am working right now on a new version, which will fix those issues (i.e. using a dedicated environment). But you will still need a couple of days of patience. 
However, if you have ideas how to improve, please use github issues or the forum here to tell us. We'll do our best to implement whatever is possible and relevant. 

Best,
Andreas from SEPAL team 
Reply all
Reply to author
Forward
0 new messages