Issue
Title.
I should probably tell you that I'm trying to convert the file via the Windows Command Prompt. The error in question
And this is the code in question:
Line 51:
if __name__ == "__main__":
if len(sys.argv[1:]) == 0:
usage()
sys.exit
else:
main(sys.argv[1:])
Line 19:
for i in range(0, (320*120) / 8):
val = 0
What's wrong with this picture?
Solution
in line 19, you are trying to use a float number ((320*120)/8) as a parameter. since the range function creates a list, the last index cant be a non-integer so it throws an error. to fix that, simply conver the result to an integer using int((320*120)/8)
or use integer devision using (320*120)//8
Answered By - javajav
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.