Closed if-ai closed 1 year ago
I wonder if you have the wrong version of moviepy installed (maybe brought in from another extension). This script uses an older version (1.0.3). Or if it could be a problem when running it in colab? (I never tried that.)
Thank you, now I have an Idea what to look for and yes I am running in a colab. I will try checking what version of that dependency is installed and I will report back to you, next time I run it.
On Mon, 19 Dec 2022, 21:43 yownas, @.***> wrote:
I wonder if you have the wrong version of moviepy installed (maybe brought in from another extension). This script uses an older version (1.0.3). Or if it could be a problem when running it in colab? (I never tried that.)
β Reply to this email directly, view it on GitHub https://github.com/yownas/seed_travel/issues/27#issuecomment-1358424532, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBUFQW4HUZBHL7YIQR763DWODJI7ANCNFSM6AAAAAATCEEXQ4 . You are receiving this because you authored the thread.Message ID: @.***>
just installed and got the same error
TypeError: VideoClip.write_videofile() got an unexpected keyword argument 'logger'
I think I figured out what goes wrong. When you start a fresh Colab it (sometimes?) has moviepy 0.2.3.5 installed by default, which in turn make my install-script skip installing the correct version. I'll see if I can improve this check.
A quick workaround should be to add this line to the colab code. (at the top is fine)
!pip install moviepy==1.0.3
removing the logger param in write_videofile worked for me. deforum and prompt-travel also install moviepy, maybe a different version
its not wrong version of moviepy
, its just that latest version of moviepy
is obsolete (abandoned?) so if libraries it internally requires get upgraded by some other package, you end up with a mess. see #43.
Removed moviepy ffe0553c59e91067ebf1e4fc7ad85ca9c870bf57
, 'None', 'None', 20, 2, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 1024, 576, True, 0.7, 256, 512, 5, False, False, False, False, '', 1, '', 0, '', True, False, False, '
Confused/new? View the README for usage instructions.
', False, True, False, True, '', 'π', True, 4.0, '54,-1,777', 10.0, False, False, True, 30.0, True, False, False, 0, 20.0, 'linear', '30', 'grad_min', 0.01, 1, 'clip', 1.0, 1.0, 'mp4', 10.0, 0, 1, False, True) {} Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/call_queue.py", line 45, in f res = list(func(*args, *kwargs)) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/call_queue.py", line 28, in f res = func(args, *kwargs) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/txt2img.py", line 46, in txt2img processed = modules.scripts.scripts_txt2img.run(p, args) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 328, in run processed = script.run(p, *script_args) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/seed_travel/scripts/seed_travel.py", line 178, in run clip.write_videofile(os.path.join(travel_path, f"travel-{travel_number:05}.mp4"), verbose=False, logger=None) TypeError: write_videofile() got an unexpected keyword argument 'logger'