Hi,
I got error like this when trying to load documents from YouTube:
DownloadError: ERROR: [youtube] jGwO_UgTS7I: Sign in to confirm you’re not a bot. This helps protect our community. Learn more
Any idea how to fix this? Thank you!
Hi,
I got error like this when trying to load documents from YouTube:
DownloadError: ERROR: [youtube] jGwO_UgTS7I: Sign in to confirm you’re not a bot. This helps protect our community. Learn more
Any idea how to fix this? Thank you!
Perhaps if you sign in into youtube with your account and try running the cell again! that my idea!
same for me. I even tried the video uploaded to youtube by myself. same error. Could you please check how to fix it? thanks.
There is nothing I can do about this, but did you check signing in first into youtube…
Hi Gent,
I did sign in. I can download the video if I run code locally. But locally I got this error with docs = loader.load()
Would you have an idea how to resolve the ffprobe and ffmpeg error? thanks a lot.
docs = loader.load()
[youtube] Extracting URL: https://www.youtube.com/watch?v=S0aT6jogsvk
[youtube] S0aT6jogsvk: Downloading webpage
[youtube] S0aT6jogsvk: Downloading ios player API JSON
[youtube] S0aT6jogsvk: Downloading web creator player API JSON
[youtube] S0aT6jogsvk: Downloading m3u8 information
[info] S0aT6jogsvk: Downloading 1 format(s): 140
[download] docs\youtube\Wie kann man den Tee einfach und richtig vorbereiten.m4a has already been downloaded
[download] 100% of 5.66MiB
ERROR: Postprocessing: ffprobe and ffmpeg not found. Please install or provide the path using --ffmpeg-location
Traceback (most recent call last):
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 3561, in process_info
replace_info_dict(self.post_process(dl_filename, info_dict, files_to_move))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 3743, in post_process
info = self.run_all_pps(‘post_process’, info, additional_pps=info.get(‘__postprocessors’))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 3725, in run_all_pps
info = self.run_pp(pp, info)
^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 3703, in run_pp
files_to_delete, infodict = pp.run(infodict)
^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\postprocessor\common.py”, line 23, in run
ret = func(self, info, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\postprocessor\common.py”, line 128, in wrapper
return func(self, info)
^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\postprocessor\ffmpeg.py”, line 494, in run
filecodec = self.get_audio_codec(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\postprocessor\ffmpeg.py”, line 242, in get_audio_codec
raise PostProcessingError(‘ffprobe and ffmpeg not found. Please install or provide the path using --ffmpeg-location’)
yt_dlp.utils.PostProcessingError: ffprobe and ffmpeg not found. Please install or provide the path using --ffmpeg-location
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\ProgramData\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py”, line 3505, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File “”, line 1, in
docs = loader.load()
^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\langchain_core\document_loaders\base.py”, line 30, in load
return list(self.lazy_load())
^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\langchain_community\document_loaders\generic.py”, line 115, in lazy_load
for blob in self.blob_loader.yield_blobs(): # type: ignore[attr-defined]
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\langchain_community\document_loaders\blob_loaders\youtube_audio.py”, line 44, in yield_blobs
ydl.download(url)
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 3607, in download
self.__download_wrapper(self.extract_info)(
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 3582, in wrapper
res = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 1615, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 1626, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 1782, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 1841, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 3015, in process_video_result
self.process_info(new_info)
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 179, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 3563, in process_info
self.report_error(f’Postprocessing: {err}‘)
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 1092, in report_error
self.trouble(f’{self._format_err(“ERROR:”, self.Styles.ERROR)} {message}', *args, **kwargs)
File “C:\Users\wzx_m\AppData\Roaming\Python\Python311\site-packages\yt_dlp\YoutubeDL.py”, line 1031, in trouble
raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: Postprocessing: ffprobe and ffmpeg not found. Please install or provide the path using --ffmpeg-location
When you run these labs locally you need all the helper files which can be found in File-> Open and also you have to make sure the versions are the same as the ones used in the lab!
Thanks a lot Gent.
I can see the folders if I go to File-> Open. But unfortunately, I did not see how to download the files.
Could you please send me some screenshots to download files to enable running locally?
Thanks.
Perhaps right click and then download or select the file and then on the top bar there should be a download, thats how I remember coursera was…
Same to me, either.
By the way, the kernel running jupyter notebook is not in our environment, so signing in with our browser does not solve this problem.
I think the problem is that YoutubeAudioLoader is being misidentified as a bot, and the solution to this problem requires a YoutubeAudioLoader modification, ain’t I right?
Same error
Same problem for me.
Same here. I always have Youtube signed-in but not sure why I got this error.
Can someone look into whether the YouTube interface for this course is working correctly?
if you have the same error, then make sure ffmpeg location according to the file location available in your local system.
With that being said, first please make sure you have downloaded all the files from File==>Open section and located into your local main drive or from where your jupyter notebook reads the file, otherwise change the path location according to where the ffmpeg file is located.
Also check the requirement.txt.file which provides you information on the dependencies version match requirement for codes to run locally.
I am sharing link on how to address the ffmpeg location issue in the link check bashonly’s comment
please let me know what error it throws if not successful, but please make sure share a screenshot rather than copy paste of error log.
Regards
DP
It is fixed!
Lesson 1: Document Loading
Thank you again for reporting!