We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
File "/home/debian2/anaconda3/lib/python3.7/site-packages/moviepy-2.0.0.dev1-py3.7.egg/moviepy/video/tools/drawing.py", line 156, in color_gradient n_vec = vector / norm ** 2 # norm 1/norm(vector) UnboundLocalError: local variable 'norm' referenced before assignment
The text was updated successfully, but these errors were encountered:
Thank you for the report. This is my fault: in #1101, the line if vector is not None: was incorrectly changed to if vector:, which caused #1205. Then I tried to fix it in #1212 but I apparently missed the not, so the logic is faulty. You can fix it in your installation by adding the not to that line: https://github.com/Zulko/moviepy/blob/master/moviepy/video/tools/drawing.py#L149
if vector is not None:
if vector:
not
Sorry, something went wrong.
Fix color_gradient logic regression noted in #1259
ff15fcf
Fixed in ff15fcf
No branches or pull requests
There seems to be a bug
The text was updated successfully, but these errors were encountered: