Skip to content
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

TypeError: Video.__init__() got an unexpected keyword argument 'source' #22

Open
cvespaz opened this issue Mar 22, 2024 · 3 comments
Open

Comments

@cvespaz
Copy link

cvespaz commented Mar 22, 2024

TypeError: Video.init() got an unexpected keyword argument 'source'

cannot get past this error for webui, thank you for your time

@cvespaz
Copy link
Author

cvespaz commented Mar 22, 2024

nvm, thank you- installing the correct version of gradio fixed it.

@cvespaz
Copy link
Author

cvespaz commented Mar 22, 2024

now getting this after render runs:
Traceback (most recent call last):
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\queueing.py", line 388, in call_prediction
output = await route_utils.call_process_api(
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\route_utils.py", line 219, in call_process_api
output = await app.get_blocks().process_api(
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1437, in process_api
result = await self.call_function(
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1109, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\anyio\to_thread.py", line 49, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\anyio_backends_asyncio.py", line 2103, in run_sync_in_worker_thread
return await future
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\anyio_backends_asyncio.py", line 823, in run
result = context.run(func, *args)
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\utils.py", line 650, in wrapper
response = f(*args, **kwargs)
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\Users\chris\fresco\FRESCO\webUI.py", line 159, in process
keypath = process1(*args)
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\Users\chris\fresco\FRESCO\webUI.py", line 312, in process1
writer.append_data(curImg)
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\imageio\v2.py", line 226, in append_data
return self.instance.write(im, **self.write_args)
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\imageio\plugins\pyav.py", line 632, in write
self.init_video_stream(codec, fps=fps, pixel_format=out_pixel_format)
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\imageio\plugins\pyav.py", line 836, in init_video_stream
stream = self._container.add_stream(codec, fps)
File "av\container\output.pyx", line 63, in av.container.output.OutputContainer.add_stream
ValueError: needs one of codec_name or template

@williamyang1991
Copy link
Owner

#15 (comment)
Update your imageio?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants