graspnet / anygrasp_sdk

222 stars 22 forks source link

AttributeError: module 'numpy' has no attribute 'float'. #27

Closed JanNogga closed 7 months ago

JanNogga commented 7 months ago
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.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#deprecations

This error occurs for either import statements:

from gsnet import AnyGrasp
from graspnetAPI import GraspGroup

It would be great if you could fix this, so that we are more flexible w.r.t. the numpy versions we can use.

JanNogga commented 7 months ago

Never mind. This issue seems related to transforms3d and was fixed by installing transforms3d-0.4.1.