Jeija / bluefluff

Reverse Engineering Furby Connect's Bluetooth Protocol and Update Format
MIT License
478 stars 82 forks source link

toimage.py TypeError: integer argument expected, got float #16

Closed araczkowski closed 7 years ago

araczkowski commented 7 years ago

Hi, on my ubuntu box, when I'm trying to do:

python toimage.py tu003150.dlc

I have: Opening tu003150.dlc Traceback (most recent call last): File "toimage.py", line 21, in <module> im = Image.new("RGB", (WIDTH, math.ceil(dlcsize / 0x30)), "white") File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2022, in new return Image()._new(core.fill(mode, size, color)) TypeError: integer argument expected, got float

the fix - convert to int: int(math.ceil(dlcsize / 0x30))

pull request is on the way

PS this project is awesome - thx :)