Skip to Content

python texttable "cannot convert float infinity to integer" Error

Posted on
$ python /home/dev/
Traceback (most recent call last):
File "/home/dev/", line 105, in <module>
File "/home/dev/venv3/lib/python3.4/site-packages/", line 361, in add_rows
File "/home/dev/venv3/lib/python3.4/site-packages/", line 340, in add_row
cells.append(self._str(i, x))
File "/home/dev/venv3/lib/python3.4/site-packages/", line 413, in _str
if f - round(f) == 0:
OverflowError: cannot convert float infinity to integer

위와 같은 에러가 갑자기 나기 시작해서 살펴보니

$ pip list | grep texttable
texttable (0.9.1)
$ pip install texttable --upgrade
Downloading/unpacking texttable from
Downloading texttable-1.2.1.tar.gz
Running (path:/home/dev/venv3/build/texttable/ egg_info for package texttable

Installing collected packages: texttable
Found existing installation: texttable 0.9.1
Uninstalling texttable:
Successfully uninstalled texttable
Running install for texttable

Successfully installed texttable
Cleaning up...

0.9.1 을 1.2.1 로 업그레이드하고 정상 작동