Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursion error when passing -K switch with yt_dlp from gallery-dl. #2609

Closed
Silent-Soldier opened this issue May 20, 2022 · 1 comment
Closed
Labels

Comments

@Silent-Soldier
Copy link

Silent-Soldier commented May 20, 2022

Appears to affect any/all yt-dlp supported URls. Various yt_dlp metadata parser code changes/split functions in the last few months, so I haven't been able to narrow down where the issue originates from.

Console output is over 1,000 lines so attached a shortened/truncated verbose output.

gallery-dl --verbose -K "https://www.youtube.com/watch?v=hFEMmOd3Io4"
2022-05-20 11:19:16 [gallery-dl][debug] Version 1.22.0-dev
2022-05-20 11:19:16 [gallery-dl][debug] Python 3.10.4 - Windows-10-10.0.19044-SP0
2022-05-20 11:19:16 [gallery-dl][debug] requests 2.27.1 - urllib3 1.26.9
2022-05-20 11:19:16 [gallery-dl][debug] Starting KeywordJob for 'https://www.youtube.com/watch?v=hFEMmOd3Io4'
2022-05-20 11:19:17 [ytdl][debug] Using YoutubeDLExtractor for 'https://www.youtube.com/watch?v=hFEMmOd3Io4'
2022-05-20 11:19:17 [ytdl][debug] Using <module 'yt_dlp' from 'C:\\Users\\*****\\AppData\\Roaming\\Python\\Python310\\site-packages\\yt_dlp\\__init__.py'>
2022-05-20 11:19:17 [ytdl][debug] [youtube] hFEMmOd3Io4: Downloading webpage
2022-05-20 11:19:19 [ytdl][debug] [youtube] hFEMmOd3Io4: Downloading android player API JSON

Keywords for directory names:
-----------------------------
_has_drm
  None
_ytdl_info_dict[_has_drm]
  None
_ytdl_info_dict[_ytdl_info_dict][_has_drm]
  None
_ytdl_info_dict[_ytdl_info_dict][_ytdl_info_dict][_has_drm]
  None
.......(Repeats)
2022-05-20 11:28:34 [ytdl][error] An unexpected error occurred: RecursionError - maximum recursion depth exceeded in comparison. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
2022-05-20 11:28:34 [ytdl][debug]
Traceback (most recent call last):
  File "C:\Users\*****\AppData\Roaming\Python\Python310\site-packages\gallery_dl\job.py", line 78, in run
    self.dispatch(msg)
  File "C:\Users\*****\AppData\Roaming\Python\Python310\site-packages\gallery_dl\job.py", line 126, in dispatch
    self.handle_directory(msg[1])
  File "C:\Users\*****\AppData\Roaming\Python\Python310\site-packages\gallery_dl\job.py", line 549, in handle_directory
    self.print_kwdict(kwdict)
  File "C:\Users\*****\AppData\Roaming\Python\Python310\site-packages\gallery_dl\job.py", line 587, in print_kwdict
    self.print_kwdict(value, key + "[")
  File "C:\Users\*****\AppData\Roaming\Python\Python310\site-packages\gallery_dl\job.py", line 587, in print_kwdict
    self.print_kwdict(value, key + "[")
  File "C:\Users\*****\AppData\Roaming\Python\Python310\site-packages\gallery_dl\job.py", line 587, in print_kwdict
    self.print_kwdict(value, key + "[")
  [Previous line repeated 986 more times]
  File "C:\Users\*****\AppData\Roaming\Python\Python310\site-packages\gallery_dl\job.py", line 581, in print_kwdict
    for key, value in sorted(kwdict.items()):
RecursionError: maximum recursion depth exceeded in comparison
@mikf
Copy link
Owner

mikf commented May 20, 2022

For a workaround, disable output.private.

@mikf mikf added the bug label May 20, 2022
@mikf mikf closed this as completed in 64d3ad2 May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants