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

np.float #89

Open
Qinolion opened this issue Aug 10, 2024 · 1 comment
Open

np.float #89

Qinolion opened this issue Aug 10, 2024 · 1 comment

Comments

@Qinolion
Copy link

Traceback (most recent call last):
File "/host/home/yanai-lab/Sotsuken24/xiong-p/test/Practical-RIFE/inference_video.py", line 115, in
lastframe = next(videogen)
^^^^^^^^^^^^^^
File "/home/yanai-lab/xiong-p/miniconda3/envs/RIFE/lib/python3.11/site-packages/skvideo/io/io.py", line 251, in vreader
reader = FFmpegReader(fname, inputdict=inputdict, outputdict=outputdict, verbosity=verbosity)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yanai-lab/xiong-p/miniconda3/envs/RIFE/lib/python3.11/site-packages/skvideo/io/ffmpeg.py", line 103, in init
self.inputfps = np.float(parts[0])/np.float(parts[1])
^^^^^^^^
File "/home/yanai-lab/xiong-p/miniconda3/envs/RIFE/lib/python3.11/site-packages/numpy/init.py", line 324, 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'?

@NevermindNilas
Copy link

Not sure but a quick google search says that the last known version with np.float seems to be 1.22.0

I'd first do a:
pip uninstall numpy -y
Just to get rid of the current numpy install.

Then I'd try this.
pip install numpy==1.22.0

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

2 participants