Pysolfc 2,20,1
Arch Linux 6.4.1-arch2-1
Python 3.11.3
Start pysolfc
$ 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/main.py", line 30, in <module>
from pysollib.app import Application
File "/usr/lib/python3.11/site-packages/pysollib/app.py", line 32, in <module>
from pysollib.actions import PysolMenubar
File "/usr/lib/python3.11/site-packages/pysollib/actions.py", line 28, in <module>
from pysollib.help import help_about, help_html
File "/usr/lib/python3.11/site-packages/pysollib/help.py", line 29, in <module>
from pysollib.pysoltk import HTMLViewer
File "/usr/lib/python3.11/site-packages/pysollib/pysoltk.py", line 28, in <module>
from pysollib.ui.tktile.tkutil import * # noqa: F401,F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pysollib/ui/tktile/tkutil.py", line 250, in <module>
class PIL_Image(ImageTk.PhotoImage):
File "/usr/lib/python3.11/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'
Python-pillow 10..0.0
See Pillow Documentation
This has already been fixed, but has not yet been released due to an issue with the continuous integration processes getting an error installing Pillow 10.0.0, which prevents generating packages.
I am no python programmer, but if I replace all occurrences of
Image.ANTIALIAS
in/usr/lib/python3.11/site-packages/pysollib/ui/tktile/tkutil.py
and/usr/lib/python3.11/site-packages/pysollib/options.py
withImage.LANCZOS
it seems to work again. Just until the devs sort out the big issue. :)I mean that can work, but I've implemented a stronger fix that checks for the existence of both Image.ANTIALIAS and Image.LANCZOS, so as not to break compatibility with older versions of Pillow too.
The fix is part of the 2.21.0 release.