ImageTK seems broken after last update

We are getting this error in anything that uses TCL/TK

tracy@daphne:~$ pysol
Traceback (most recent call last):
  File "/usr/bin/pysol", line 36, in <module>
    from pysollib.main import main  # noqa: E402,I202
  File "/usr/lib/python3.11/site-packages/pysollib/", line 30, in <module>
    from import Application
  File "/usr/lib/python3.11/site-packages/pysollib/", line 32, in <module>
    from pysollib.actions import PysolMenubar
  File "/usr/lib/python3.11/site-packages/pysollib/", line 28, in <module>
    from import help_about, help_html
  File "/usr/lib/python3.11/site-packages/pysollib/", line 29, in <module>
    from pysollib.pysoltk import HTMLViewer
  File "/usr/lib/python3.11/site-packages/pysollib/", line 28, in <module>
    from pysollib.ui.tktile.tkutil import *  # noqa: F401,F403
  File "/usr/lib/python3.11/site-packages/pysollib/ui/tktile/", line 250, in <module>
    class PIL_Image(ImageTk.PhotoImage):
  File "/usr/lib/python3.11/site-packages/pysollib/ui/tktile/", line 291, in PIL_Image
    def resize(self, xf, yf, resample=Image.ANTIALIAS):
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

What is the specific package name?

Because when I type pacman -Fx /bin/pysol I see pysol and pysol_cards that were in community and now are in extra.

At arch, pysolfc was flagged out of date on 7/11 and there is a bug report with your error. The details have a quick fix for the short-term.

There is a stackoverflow post that describes the situation:

ANTIALIAS was removed in Pillow 10.0.0 (after being deprecated through many previous versions). Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.