graspnet / anygrasp_sdk

222 stars 22 forks source link

AttributeError: module 'numpy' has no attribute 'float' #17

Closed zingff closed 11 months ago

zingff commented 11 months ago

Hello, after installation, here is a numpy error but I can't find any traceback of it.

license passed: True, state: FvrLicenseState.PASSED
AttributeError: module 'numpy' has no attribute 'float'.
`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

I wonder this error came from this line in grasp_detection/demo.py

from gsnet import AnyGrasp

The current numpy version of is 1.24.4, but when I downgrade it to 1.19.5, here is another error

RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xd
AttributeError: FvrLicenseWrapper

The above exception was the direct cause of the following exception:

ImportError: initialization failed

Can you provide any tips? Thank you!

chenxi-wang commented 11 months ago

I successfully execute the program with numpy 1.23.4. You can try this version

zingff commented 11 months ago

Thank you! I rerun the whole installation by switching to a python3.6 version and it works. And I tried your version in my previous python3.8 version, it also works!