require pillow>=3.3.0

with pillow < 3.3.0, the call of Image.new()
in brother_ql/brother_ql_create.py line 113
would fail with the following error:

[...]
  File "/usr/lib/python3.4/site-packages/brother_ql/brother_ql_create.py", line 113, in create_label
    new_im = Image.new(im.mode, (device_pixel_width, im.size[1]), (255,)*len(im.mode))
  File "/usr/lib64/python3.4/site-packages/PIL/Image.py", line 2050, in new
    return Image()._new(core.fill(mode, size, color))
TypeError: an integer is required (got type tuple)
This commit is contained in:
Philipp Klaus
2018-01-15 15:26:20 +01:00
parent 32ba70b7dc
commit 99ee28fdaa

View File

@@ -39,7 +39,7 @@ setup(name='brother_ql',
install_requires = [
"future",
"packbits",
"pillow",
"pillow>=3.3.0",
],
extras_require = {
#'brother_ql_analyse': ["matplotlib",],