djokeur / merlinator

Playlist editor for the Merlin children loudspeaker from La Chouette Radio (Bayard / Radio France)
MIT License
51 stars 9 forks source link

Merlinator launch fails with pillow v10.0.0 #4

Open PouPass opened 10 months ago

PouPass commented 10 months ago

Merlinator launch fails with pillow version 10.0.0 with the following Traceback :

Exception in Tkinter callback
(merlin) D:\python_devs\merlinator\src>python merlinator.py
Traceback (most recent call last):
  File "d:\Users\***\miniconda3\envs\merlin\Lib\tkinter\__init__.py", line 1948, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "D:\***\merlinator\src\main_gui.py", line 301, in import_playlist
    self.load_thumbnails(items, overwrite)
  File "D:\***\merlinator\src\main_gui.py", line 232, in load_thumbnails
    image_small = image.resize((40, 40), Image.ANTIALIAS)
                                         ^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

The problem is resolved when I downgrade to pillow version 9.5.0.

I share this information with you if you want to resolve this issue for future release or if you want to complete the Readme.

Thanks for this tool it is super useful !