Skip to content

Cookie not being reconized - Colab #270

@g-gibosky

Description

@g-gibosky

Hello.
Im trying to run on a colab notebook,
All packages are installed and program is running but I'm getting the cookies error:

Command:

!pwd

Single command to process a YouTube video

Replace with your actual YouTube link

!python3.10 src/UltraSinger.py
-i "https://www.youtube.com/watch?v=wo4pWZApd2Y"
-o "/content/output"
--whisper large-v2
--crepe full
--cookiefile "/content/cookies.txt"

Output:

/content/UltraSinger
2025-11-23 05:56:28.107870: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:467] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1763877388.128161 14668 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1763877388.136096 14668 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
W0000 00:00:1763877388.161059 14668 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1763877388.161102 14668 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1763877388.161112 14668 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1763877388.161119 14668 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
/usr/local/lib/python3.10/dist-packages/librosa/util/files.py:10: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import resource_filename

[UltraSinger] ********************************
[UltraSinger] UltraSinger Version: 0.0.13-dev8
[UltraSinger] ********************************
[UltraSinger] Checking GPU support.
[UltraSinger] Found GPU: Tesla T4 VRAM: 14.74 GB.
[UltraSinger] pytorch - using cuda gpu.
[UltraSinger] tensorflow - using cuda gpu.
[UltraSinger] ----------------------
[UltraSinger] FFmpeg - using /usr/bin/ffmpeg
[UltraSinger] FFprobe - using /usr/bin/ffprobe
[UltraSinger] ----------------------
[UltraSinger] Full Automatic Mode
[youtube] Extracting URL: https://www.youtube.com/watch?v=wo4pWZApd2Y
[youtube] wo4pWZApd2Y: Downloading webpage
[youtube] wo4pWZApd2Y: Downloading tv client config
[youtube] wo4pWZApd2Y: Downloading tv player API JSON
[youtube] wo4pWZApd2Y: Downloading ios player API JSON
ERROR: [youtube] wo4pWZApd2Y: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1662, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1797, in __extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python3.10/dist-packages/yt_dlp/extractor/common.py", line 748, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python3.10/dist-packages/yt_dlp/extractor/youtube/_video.py", line 3821, in _real_extract
self.raise_no_formats(reason, expected=True)
File "/usr/local/lib/python3.10/dist-packages/yt_dlp/extractor/common.py", line 1269, in raise_no_formats
raise ExtractorError(msg, expected=expected, video_id=video_id)
yt_dlp.utils.ExtractorError: [youtube] wo4pWZApd2Y: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/content/UltraSinger/src/UltraSinger.py", line 752, in
main(sys.argv[1:])
File "/content/UltraSinger/src/UltraSinger.py", line 592, in main
run()
File "/content/UltraSinger/src/UltraSinger.py", line 154, in run
process_data = InitProcessData()
File "/content/UltraSinger/src/UltraSinger.py", line 360, in InitProcessData
) = download_from_youtube(settings.input_file_path, settings.output_folder_path, settings.cookiefile)
File "/content/UltraSinger/src/modules/Audio/youtube.py", line 101, in download_from_youtube
(artist, title) = get_youtube_title(input_url, cookiefile)
File "/content/UltraSinger/src/modules/Audio/youtube.py", line 22, in get_youtube_title
result = ydl.extract_info(
File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1651, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1680, in wrapper
self.report_error(str(e), e.format_traceback())
File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1120, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1059, in trouble
raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: [youtube] wo4pWZApd2Y: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively exporting YouTube cookies

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions