hayabhay / frogbase

Transform audio-visual content into navigable knowledge.
https://frogbase.dev
MIT License
781 stars 95 forks source link

Error when uploading local files #64

Closed AnshulJ999 closed 1 year ago

AnshulJ999 commented 1 year ago

Any local file I try to upload, whether audio or video, I get this error:

DownloadError: ERROR: [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)

hayabhay commented 1 year ago

Thanks for the flag! There maybe some issue with the way UI handles things. Will look into this and leave an update soon

hayabhay commented 1 year ago

Thanks @D3fense !

Closing this as resolved.