Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ZeroDivisionError
#2
(Nov-17-2020, 08:32 PM)MyCatCondo Wrote: I guess to reproduce this issue you need to install it and then use video-to-ascii -f {file}.mp4.

Hi MyCatCondo,

You are asking an awful lot of the strangers you are soliciting for advice. Unless I overlooked it (and I apologize if I did!), you didn't even give us a link to the repo you are asking us to install. If you aren't sure why the variable fps is getting a value of zero, maybe showing us the code where that value is assigned would be helpful.

FYI, regarding the code change you mentioned... Changing an assignment operator (=) to a comparison operator (==) can't possibly help with a ZeroDivisionError, because you can't divide by 0 regardless of your reason for doing so.
Reply


Messages In This Thread
ZeroDivisionError - by MyCatCondo - Nov-17-2020, 08:32 PM
RE: ZeroDivisionError - by GOTO10 - Nov-17-2020, 09:33 PM
RE: ZeroDivisionError - by MyCatCondo - Nov-17-2020, 10:51 PM
RE: ZeroDivisionError - by GOTO10 - Nov-19-2020, 02:15 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020