Closed araczkowski closed 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
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))
int(math.ceil(dlcsize / 0x30))
pull request is on the way
PS this project is awesome - thx :)
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 :)