zackmawaldi / YouTube-shorts-generator

Automatically download Reddit videos, edit them, and upload them to YouTube.
MIT License
323 stars 62 forks source link

TypeError: 'bool' object is not callable #20

Open salushaikh opened 1 year ago

salushaikh commented 1 year ago

Getting the following error when running main.py file.

Traceback (most recent call last): File "C:\Users\Administrator\Desktop\YouTube-shorts-generator-main\main.py", line 38, in r.render(directory, "main_clip.mp4", "output.mp4", config.video['dimensions']) File "C:\Users\Administrator\Desktop\YouTube-shorts-generator-main\render.py", line 34, in render bg = bg.fl_image(blur) ^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\moviepy\video\VideoClip.py", line 490, in fl_image return self.fl(lambda gf, t: image_func(gf(t)), apply_to) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\moviepy\Clip.py", line 136, in fl newclip = self.set_make_frame(lambda t: fun(self.get_frame, t)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 2, in set_make_frame File "C:\Python311\Lib\site-packages\moviepy\decorators.py", line 14, in outplace f(newclip, *a, *k) File "C:\Python311\Lib\site-packages\moviepy\video\VideoClip.py", line 644, in set_make_frame self.size = self.get_frame(0).shape[:2][::-1] ^^^^^^^^^^^^^^^^^ File "", line 2, in get_frame File "C:\Python311\Lib\site-packages\moviepy\decorators.py", line 89, in wrapper return f(new_a, **new_kw) ^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\moviepy\Clip.py", line 93, in get_frame return self.make_frame(t) ^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\moviepy\Clip.py", line 136, in newclip = self.set_make_frame(lambda t: fun(self.get_frame, t)) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\moviepy\video\VideoClip.py", line 490, in return self.fl(lambda gf, t: image_func(gf(t)), apply_to) ^^^^^^^^^^^^^^^^^ TypeError: 'bool' object is not callable

zackmawaldi commented 1 year ago

Hey! I updated the repository since this issue. Try again with the new code and let me know if you're still having the issue!