-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
TypeError: 'float' object cannot be interpreted as an integer #376
Comments
I'm having the same problem. Looks like reshape is expecting an integer, but it gets a float because Python 3 does not auto convert floats to integers in division unless you use I may open a PR |
This will be resolved when #384 is merged. |
Hi, I get the same error on moviepy when I try to read an .mp4 file. Is there an official resolution to this yet? Or should I just fix it locally as suggested by @WDBell (which seems to work). Thanks
|
@laventura #384 will be part of the repo in the next update. |
I have the same issue. @Gloin1313 any idea when it will be updated next? |
@zippau It's merged into master and being pushed to pypi this morning. |
Can this issue be closed? |
closing.. please reopen if the issue arises again! |
I had the same issue and solved it by updating numpy as follows: |
@Techlucy Have you got the latest version of moviepy? Run |
Well me I am using it on Training neural network with Tensorflow. However I have corrected the error by installing the numpy 1.11.0 version. |
I can confirm @Techlucy I have this error with numpy 1.12.1, fixed installing numpy 1.11.0 |
Still getting this error after running
and it installed
What to do? |
Still getting this error: TypeError: 'float' object cannot be interpreted as an integer Did something else (Numpy?) change? |
It is a very common error in Python programming. You'll have to give the full traceback if you want help with it. It could be anywhere. |
I'm having the same problem i think. I'm trying to use the lib heatmappy so i don't know all the code yet, but looks like the error is out of my control. Below there is the traceback.
|
Same problem
|
Hello, list1 = [] final_seq = np.array(list1) I got the Error:'float' object cannot be interpreted as an integer |
I'm new to moviepy.
clip = VideoFileClip("Rough Guide to Dublin (54).mp4")
I tried three mp4 files, all with the same result. Fuller information:
Suggest this change to code (and hope that this is a reasonable place to post this). In
readers.py
, substitute the secondresult =
statement.The text was updated successfully, but these errors were encountered: