Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HYDRA_FULL_ERROR=1 for a complete stack trace Error Occur. #21

Closed
ImSuMyatNoe opened this issue May 16, 2023 · 5 comments
Closed

HYDRA_FULL_ERROR=1 for a complete stack trace Error Occur. #21

ImSuMyatNoe opened this issue May 16, 2023 · 5 comments

Comments

@ImSuMyatNoe
Copy link

raise AttributeError(former_attrs[attr])
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 specifi
cally 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

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Although I have used your updated "predict.py" code, but the same error occur. I have tested both on my desktop PC and Laptop? Do u have any idea how to solve this?

@KongBuZhanTieRen
Copy link

I have the same problem

@KongBuZhanTieRen
Copy link

This issue is caused by a version mismatch of numpy, as numpy deleted np.float after version 1.24. I resolved this issue by switching numpy version to 1.23.5

@Liuchuang-alt
Copy link

Which platform are you running under ? linux or windows?

@KongBuZhanTieRen
Copy link

windows

@saniasinghanicourse1
Copy link

Just write 'export HYDRA_FULL_ERROR=1' in your command prompt before running the predict.py code and the error should be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants