-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
“The End” effect example scripts get fault -- TypeError: 'NoneType' object is not subscriptable #1256
Comments
Thanks for the report. It looks like a problem in |
|
Thanks for the suggested fix. This was actually just a very simple regression that I messed up when fixing. See #1259. It is fixed now in master. |
@tburrows13 @0xe590b4 I dont think that is true, the error is in the lines above it, and it still exists. When color_gradient is invoked from circle, neither vector or p2 is passed. So the if does not satisfy, and the else fails, as shown in the stacktrace. |
@tburrows13 @0xe590b4 I propose the correction:
=> This make the circle "The End' example to work perfectly |
Commenting the whole block also works, or skipping it for radial shape: if shape != "radial":
if vector is None and p2:
p2 = np.array(p2[::-1])
vector = p2 - p1
else:
vector = np.array(vector[::-1])
p2 = p1 + vector I think that is a problem of inconsistency between implementations for different |
The solution proposed by @0xe590b4 seems the correct to me because either |
This issue stills exists with same exceptions. Traceback (most recent call last): anyone help. |
A new version with the patch has not been released. Are you using the master Github branch? |
NO. I'm using from pip. so that's why occured maybe. |
@debdip did you know how to fix it? |
I run the example scripts “The End” effect after complete the installation,the code is:
Expected Behavior
Return correct
Actual Behavior
Steps to Reproduce the Problem
pip install moviepy
sudo apt update
sudo add-apt-repository ppa:jonathonf/ffmpeg-4
sudo apt install ffmpeg
Specifications
The text was updated successfully, but these errors were encountered: