UVR5_Linux icon indicating copy to clipboard operation
UVR5_Linux copied to clipboard

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

Open Hanmingsan opened this issue 1 year ago • 1 comments

i have compeletely followed the instructions, however i can not use the application and i have got this:

(uvr5) hanmingsan@sonetto:~/Desktop/UVR5_Linux$ python UVR.py Traceback (most recent call last): File "/home/hanmingsan/Desktop/UVR5_Linux/UVR.py", line 6298, in root = MainWindow() File "/home/hanmingsan/Desktop/UVR5_Linux/UVR.py", line 560, in init self.logo_img = open_image(path=banner_path, File "/home/hanmingsan/Desktop/UVR5_Linux/UVR.py", line 399, in open_image img = img.resize((size[0], int(size[0] * ratio)), Image.ANTIALIAS) AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

BTW i am using conda

Hanmingsan avatar May 25 '24 04:05 Hanmingsan

I have the same error. Also using conda.

This solution fixed it for me.

https://stackoverflow.com/questions/76616042/attributeerror-module-pil-image-has-no-attribute-antialias

Just find and replace all the Image.ANTIALIAS -> Image.Resampling.LANCZOS.

641i130 avatar Aug 22 '24 02:08 641i130