Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' when importing playlist.bin #10

Open
Sahaathyva opened this issue Sep 30, 2024 · 2 comments

Comments

@Sahaathyva
Copy link

Bonjour / hi !

Lorsque je tente d'importer playlist.bin il ne se passe rien, la console py me renvoie l'erreur
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

Après une petite recherche il semblerait que 'ANTIALIAS' ait été déprécié depuis Pillow v10.0 ,cf
https://stackoverflow.com/questions/76616042/attributeerror-module-pil-image-has-no-attribute-antialias

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.

Quel est le script qui utilise ANTIALIAS , le main_gui.py ?

When I try to import playlist.bin, nothing happens, and the py console returns the error:

AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

After a little research, it seems that 'ANTIALIAS' has been deprecated since Pillow v10.0 (https://stackoverflow.com/questions/76616042/attributeerror-module-pil-image-has-no-attribute-antialias). Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.

Which script uses ANTIALIAS, main_gui.py?

Si je trouve du temps je tente de débuguer

@Sahaathyva
Copy link
Author

It works i will push a PR with the patched script

@Sahaathyva
Copy link
Author

i won't as it is already waiting :

#9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant