You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/usr/local/lib/python3.8/dist-packages/tricolour-0.1.8-py3.8.egg/tricolour/mask.py", line 63, in load_mask
if mask.dtype[0] != np.bool or mask.dtype[1] != np.float64:
File "/usr/local/lib/python3.8/dist-packages/numpy/init.py", line 305, in getattr
raise AttributeError(former_attrs[attr])
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
What I Did
generated a singularity, but some of the packages can not work with numpy 1.19.5
Any advice or help would be greatly appreciated
The text was updated successfully, but these errors were encountered:
I have started working on a new release a while ago, but I haven't really had time to finish that work. There are still some new features that are needed for a release You can maybe just install the branch for now https://github.com/ratt-ru/tricolour/tree/prepare-0.2.0
Description
Get an error:
File "/usr/local/lib/python3.8/dist-packages/tricolour-0.1.8-py3.8.egg/tricolour/mask.py", line 63, in load_mask
if mask.dtype[0] != np.bool or mask.dtype[1] != np.float64:
File "/usr/local/lib/python3.8/dist-packages/numpy/init.py", line 305, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'bool'.
np.bool
was a deprecated alias for the builtinbool
. To avoid this error in existing code, usebool
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.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
What I Did
generated a singularity, but some of the packages can not work with numpy 1.19.5
Any advice or help would be greatly appreciated
The text was updated successfully, but these errors were encountered: