Any local file I try to upload, whether audio or video, I get this error:
DownloadError: [0;31mERROR:[0m [generic] None: Unable to download webpage: (caused by URLError('unknown url type: c'))
Traceback:
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _runscript
exec(code, module.dict)
File "C:\Users\Anshul\Downloads\frogbase-main\ui\01🏠_Home.py", line 103, in
fb.add(sources, opts).transcribe(ignore_captioned=False).embed().index()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\Downloads\frogbase-main\frogbase\core.py", line 246, in add
self._media_buffer = self.media.add(sources, opts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\Downloads\frogbase-main\frogbase\media.py", line 499, in add
added_media += self._add_from_web(source, opts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\Downloads\frogbase-main\frogbase\media.py", line 264, in _add_from_web
ydl.download(url)
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3485, in download
self.__download_wrapper(self.extract_info)(
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3460, in wrapper
res = func(*args, *kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1549, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1578, in wrapper
self.report_error(str(e), e.format_traceback())
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1042, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', args, kwargs)
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 981, in trouble
raise DownloadError(message, exc_info)
Any local file I try to upload, whether audio or video, I get this error:
DownloadError: [0;31mERROR:[0m [generic] None: Unable to download webpage: (caused by URLError('unknown url type: c'))
Traceback:
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _runscript
exec(code, module.dict)
File "C:\Users\Anshul\Downloads\frogbase-main\ui\01🏠_Home.py", line 103, in
fb.add(sources, opts).transcribe(ignore_captioned=False).embed().index()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\Downloads\frogbase-main\frogbase\core.py", line 246, in add
self._media_buffer = self.media.add(sources, opts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\Downloads\frogbase-main\frogbase\media.py", line 499, in add
added_media += self._add_from_web(source, opts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\Downloads\frogbase-main\frogbase\media.py", line 264, in _add_from_web
ydl.download(url)
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3485, in download
self.__download_wrapper(self.extract_info)(
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3460, in wrapper
res = func(*args, *kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1549, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1578, in wrapper
self.report_error(str(e), e.format_traceback())
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1042, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', args, kwargs)
File "C:\Users\Anshul\AppData\Local\Programs\Python\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 981, in trouble
raise DownloadError(message, exc_info)