Not working

#3
by xianbao HF staff - opened

/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/inputs.py:27: UserWarning: Usage of gradio.inputs is deprecated, and will not be supported in the future, please import your component from gradio.components
warnings.warn(
/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: optional parameter is deprecated, and it has no effect
warnings.warn(value)
/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: numeric parameter is deprecated, and it has no effect
warnings.warn(value)
/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/inputs.py:293: UserWarning: Usage of gradio.inputs is deprecated, and will not be supported in the future, please import your components from gradio.components
warnings.warn(
/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/inputs.py:217: UserWarning: Usage of gradio.inputs is deprecated, and will not be supported in the future, please import your component from gradio.components
warnings.warn(
/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/outputs.py:63: UserWarning: Usage of gradio.outputs is deprecated, and will not be supported in the future, please import your components from gradio.components
warnings.warn(
Caching examples at: '/home/user/app/gradio_cached_examples/20/log.csv'
[youtube] Extracting URL: https://youtu.be/6SnVqNLWZJ8
[youtube] 6SnVqNLWZJ8: Downloading webpage
[youtube] 6SnVqNLWZJ8: Downloading android player API JSON
ERROR: [youtube] 6SnVqNLWZJ8: Unable to extract uploader id; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1502, in wrapper
return func(self, *args, **kwargs)
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1578, in __extract_info
ie_result = ie.extract(url)
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/yt_dlp/extractor/common.py", line 680, in extract
ie_result = self._real_extract(url)
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/yt_dlp/extractor/youtube.py", line 4049, in _real_extract
'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/yt_dlp/extractor/common.py", line 1228, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
yt_dlp.utils.RegexNotFoundError: [youtube] 6SnVqNLWZJ8: Unable to extract uploader id; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "app.py", line 58, in
gr.Examples(examples, inputs=[input_text, input_dropdown], outputs=[output, video_gif], fn=AnimeSr_Video, cache_examples=True)
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/helpers.py", line 69, in create_examples
utils.synchronize_async(examples_obj.create)
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/utils.py", line 377, in synchronize_async
return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs)
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/fsspec/asyn.py", line 99, in sync
raise return_result
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/fsspec/asyn.py", line 54, in _runner
result[0] = await coro
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/helpers.py", line 273, in create
await self.cache()
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/helpers.py", line 308, in cache
prediction = await Context.root_block.process_api(
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/blocks.py", line 1015, in process_api
result = await self.call_function(
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/gradio/blocks.py", line 833, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "app.py", line 20, in AnimeSr_Video
source = url_download(source)
File "/home/user/app/utils.py", line 7, in url_download
ydl.extract_info(url, download=True)
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1491, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1520, in wrapper
self.report_error(str(e), e.format_traceback())
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 1012, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/home/user/.pyenv/versions/3.8.9/lib/python3.8/site-packages/yt_dlp/YoutubeDL.py", line 952, in trouble
raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: [youtube] 6SnVqNLWZJ8: Unable to extract uploader id; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

ArtGAN org

Thank @xianbao for the feedback.
I fixed the error. Now there is a problem with the GPU. I wrote to the Discord group. I'll let you know when it's resolved.

kadirnar changed discussion status to closed

Sign up or log in to comment