Closed darshad-github closed 1 year ago
SOLUTION
Upon investigation, we learned that 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. However, a workaround for that is to use pip install Pillow==9.5.0 instead. (StackOverflow)
(venv) dicompixelanon/src/applications % mkdir $SMI_ROOT/data/flair
(venv) dicompixelanon/src/applications % pip install Pillow==9.5.0
easyocr will be updated in due course https://github.com/JaidedAI/EasyOCR/issues/1077
However this is a fault in Pillow - their release notes said "The ANTIALIAS constant is left for backward compatibility and is an alias for LANCZOS" but then later they say "Backwards Incompatible Changes: Image.ANTIALIAS has been removed". So they are aware of the need for backwards compatibility, yet they go ahead and deliberately break everyone else's code for no reason!
STACK TRACE