How to fix this python error? OverflowError: cannot convert float infinity to integer

Posted by aF on Stack Overflow See other posts from Stack Overflow or by aF
Published on 2010-05-16T18:23:46Z Indexed on 2010/05/16 18:30 UTC
Read the original article Hit count: 289

Filed under:
|

Hello,

it gives me this error:

Traceback (most recent call last):
  File "C:\Users\Public\SoundLog\Code\Código Python\SoundLog\Plugins\NoisePlugin.py", line 113, in onPaint
    dc.DrawLine(valueWI, valueHI, valueWF, valueHF)
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 3177, in DrawLine
    return _gdi_.DC_DrawLine(*args, **kwargs)
OverflowError: cannot convert float infinity to integer

How can I avoid this to happen?

Thanks in advance ;)

© Stack Overflow or respective owner

Related posts about python

Related posts about error