Runtime Error: AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
System: Ubuntu 24.04.02 LTS
Repro Steps:
-
Installed hydrapaper with no warnings or errors via flatpak with command
flatpak install org.gabmus.hydrapaper.flatpakref. All dependencies met and verified. -
Ran hydrapaper, and saw this error:
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
StackOverflow ref: "ANTIALIAS was removed in Pillow 10.0.0 (after being deprecated through many previous versions)."
Stack Trace:
(org.gabmus.hydrapaper:597427): Gtk-CRITICAL **: 12:30:23.174: gtk_widget_set_parent: assertion '_gtk_widget_get_parent (widget) == NULL' failed
Exception in thread Thread-3 (af):
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/lib/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/hydrapaper/wallpaper_flowbox_item.py", line 114, in af
self.make_wallpaper_thumb(self.cache_path)
File "/usr/lib/python3/dist-packages/hydrapaper/wallpaper_flowbox_item.py", line 150, in make_wallpaper_thumb
thumb.thumbnail((250, 250), Image.ANTIALIAS)
^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
Exception in thread Thread-2 (af):
Traceback (most recent call last):
Exception in thread Thread-4 (af):
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/lib/python3.12/threading.py", line 1010, in run
self.run()
File "/usr/lib/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/hydrapaper/wallpaper_flowbox_item.py", line 114, in af
self.make_wallpaper_thumb(self.cache_path)
File "/usr/lib/python3/dist-packages/hydrapaper/wallpaper_flowbox_item.py", line 150, in make_wallpaper_thumb
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/hydrapaper/wallpaper_flowbox_item.py", line 114, in af
thumb.thumbnail((250, 250), Image.ANTIALIAS)
^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
self.make_wallpaper_thumb(self.cache_path)
File "/usr/lib/python3/dist-packages/hydrapaper/wallpaper_flowbox_item.py", line 150, in make_wallpaper_thumb
thumb.thumbnail((250, 250), Image.ANTIALIAS)
^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
