[Bug 272523] games/pysolfc-2.20.1 is incompatible with pillow-10

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 15 Jul 2023 21:13:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272523

            Bug ID: 272523
           Summary: games/pysolfc-2.20.1 is incompatible with pillow-10
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: sven.a.jonsson@bahnhof.se

An attempt to start pysolfc with pillow-10.0 installed gives the following
result:

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


Upstream has fixed this in 2.21.0 beta.
Possible workarounds:
* downgrade pillow to 9.5.0
* or build the port with the PILLOW option off.

-- 
You are receiving this mail because:
You are the assignee for the bug.