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

python demo_toolbox.py error #1306

Open
dreamdesignersin opened this issue Jul 22, 2024 · 0 comments
Open

python demo_toolbox.py error #1306

dreamdesignersin opened this issue Jul 22, 2024 · 0 comments

Comments

@dreamdesignersin
Copy link

Hello! I am not a programmer but tried to install the requirements mentioned in the documents. I am getting the following errors when i run (python demo_toolbox.py). I have installed all requirements to the latest versions. If anyone knows how to solve these issue please do let me know.

Thanks and Regards
Below is the error

C:\RTVCM>python demo_toolbox.py
C:\RTVCM\encoder\audio.py:13: UserWarning: Unable to import 'webrtcvad'. This package enables noise removal and is recommended.
warn("Unable to import 'webrtcvad'. This package enables noise removal and is recommended.")
Traceback (most recent call last):
File "C:\RTVCM\demo_toolbox.py", line 5, in
from toolbox import Toolbox
File "C:\RTVCM\toolbox_init_.py", line 11, in
from toolbox.ui import UI
File "C:\RTVCM\toolbox\ui.py", line 37, in
], dtype=np.float) / 255
^^^^^^^^
File "C:\Python312\Lib\site-packages\numpy_init_.py", line 338, in getattr
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 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. Did you mean: 'cfloat'?

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

1 participant