Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910081 - games-board/pysolfc-2.20.1 with dev-python/pillow-10.0.0: module 'PIL.Image' has no attribute 'ANTIALIAS'
Summary: games-board/pysolfc-2.20.1 with dev-python/pillow-10.0.0: module 'PIL.Image' ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: https://github.com/shlomif/PySolFC/co...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-07-09 06:41 UTC by Andrey Grozin
Modified: 2023-08-24 15:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Grozin gentoo-dev 2023-07-09 06:41:22 UTC
Fails to start after upgrading pillow to 10.0.0:

grozin@bilbo ~ $ pysol.py 
Traceback (most recent call last):
  File "/usr/bin/pysol.py", 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'
grozin@bilbo ~ $
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-09 06:45:44 UTC
I'll backport it now.
Comment 3 Larry the Git Cow gentoo-dev 2023-07-09 08:13:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43e257ac22ca19d6f9594eb9a6ccde4401dd11c6

commit 43e257ac22ca19d6f9594eb9a6ccde4401dd11c6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-07-09 08:05:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-09 08:08:42 +0000

    games-board/pysolfc: fix compat w/ pillow 10
    
    Closes: https://bugs.gentoo.org/910081
    Signed-off-by: Sam James <sam@gentoo.org>

 .../pysolfc/files/pysolfc-2.20.1-pillow-10.patch   | 138 +++++++++++++++++++++
 games-board/pysolfc/pysolfc-2.20.1-r1.ebuild       |  72 +++++++++++
 2 files changed, 210 insertions(+)
Comment 4 Karl Hakimian 2023-08-24 15:35:11 UTC
Now that pillow 10 has gone stable, pysolfc is broken. Whatever fix was claimed here does not appear to have made it to the stable version.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-24 15:39:35 UTC
(In reply to Karl Hakimian from comment #4)
> Now that pillow 10 has gone stable, pysolfc is broken. Whatever fix was
> claimed here does not appear to have made it to the stable version.

Perhaps you could try pysolfc-2.20.1-r1 to confirm it's OK?

I'll request stabling for it anyway.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-24 15:39:59 UTC
(In reply to Sam James from comment #5)
> (In reply to Karl Hakimian from comment #4)
> > Now that pillow 10 has gone stable, pysolfc is broken. Whatever fix was
> > claimed here does not appear to have made it to the stable version.
> 
> Perhaps you could try pysolfc-2.20.1-r1 to confirm it's OK?
> 
> I'll request stabling for it anyway.

Oh wait, pysolfc has no stable keywords. So your package.accept_keywords entry is likely wrong.
Comment 7 Karl Hakimian 2023-08-24 15:45:41 UTC
OK. I misunderstood on two points. I thought the change was to pillow, not pysolfc and you are right, my keywords file was wrong.

Thanks and sorry for unnecessary report.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-24 15:47:06 UTC
(In reply to Karl Hakimian from comment #7)
> OK. I misunderstood on two points. I thought the change was to pillow, not
> pysolfc and you are right, my keywords file was wrong.
> 
> Thanks and sorry for unnecessary report.

No worries, glad you're sorted!