NanKeRen2020 / UVR5_Linux

ultimate vocal remover application run on linux ubuntu1604
MIT License
51 stars 4 forks source link

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

Open Hanmingsan opened 5 months ago

Hanmingsan commented 5 months ago

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

641i130 commented 2 months ago

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.