hadn't looked into it but it seems to be an issue because in numpy 1.20.0 they deprecated np.bool and np.int for simplicity. Don't think it's related to the CLI specifically but I did encounter it through CLI interaction. Looks like someone removed int before me but for some reason I still had it in my code.
Hi folks 👋 Went through the initial setup for ClearML Serving here and
clearml-serving create --name "serving example"
encountered this exception (solved)
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:
at both the boolean and int calls
lib/python3.8/site-packages/clearml_serving/serving/preprocess_service.py", line 256, in TritonPreprocessRequest
I changed the calls to use int and bool instead of np.int and np.bool as suggested by the exception and that worked.
Using python 3.8 and maybe it's my mistake for using that version which causes this issue but thought it might be useful to share.