Closed yoichitgy closed 4 months ago
What should I do in my local to fetch the fix?
What should I do in my local to fetch the fix?
did you figure it out?
I'm having the same error:
Python Version: 3.11.5 MoviePy Version: 1.0.3 Pillow Version: 10.0.0 Platform Name: macOS Platform Version: 12.6.7
Had the same issues.
After digging into the source code (https://github.com/Zulko/moviepy/blob/master/moviepy/video/fx/resize.py)
I found that moviepy will try to use opencv as resizer first, if opencv not installed it will use PIL which leads to the error we are seeing here.
Instead of fixing the deprecated PIL package, simply installing opencv-python works for me.
Had the same issues.
After digging into the source code (https://github.com/Zulko/moviepy/blob/master/moviepy/video/fx/resize.py)
I found that moviepy will try to use opencv as resizer first, if opencv not installed it will use PIL which leads to the error we are seeing here.
Instead of fixing the deprecated PIL package, simply installing opencv-python works for me.
Then I suspect that this means that moviepy will add opencv-python
as a dependency in future releases?
Had the same issues. After digging into the source code (https://github.com/Zulko/moviepy/blob/master/moviepy/video/fx/resize.py) I found that moviepy will try to use opencv as resizer first, if opencv not installed it will use PIL which leads to the error we are seeing here. Instead of fixing the deprecated PIL package, simply installing opencv-python works for me.
Then I suspect that this means that moviepy will add
opencv-python
as a dependency in future releases?
yeah i've added openvc-python
and everything worked fine.
I have the same error. When moviepy will be fixed to support pil 10? Thanks.
I have the same error. When moviepy will be fixed to support pil 10? Thanks.
Add opencast-python package to your pip
I faced the same issue, so i downgraded to Pillow==9.4.0 and it worked for me!
The Pil attr ANTIALIAS is Been Deprecated. Therefor We Need to Downgrade the Pillow Version. or Re Download the Moviepy.
You can edit resize.py in line 37 with this line.
resized_pil = pilim.resize(newsize[::-1], resample=Image.LANCZOS)
ANTIALIAS is deprecated.
Yes, it can Work But it is Not Suggested.
Yeah, but this should work as a temporary solution.
Thanks, @yoichitgy, also for the fix you submitted.
I'm closing this issue – like I've done with the other duplicates – in favour of #2072, which links to the library's official relase notes, to reduce noise.
Expected Behavior
resize
function works without an error when Pillow version 10.0.0 is installed.Actual Behavior
The following error is raised at
moviepy/video/fx/resize.py", line 37, in resizer
Steps to Reproduce the Problem
resize
function on aImageClip
.This issue is caused by the deprecation of
ANTIALIAS
in Pillow version 10.0.0.Reference: https://stackoverflow.com/a/76616129/4522678
Specifications