[GH-ISSUE #616] KeyError: 'singleColumnBrowseResultsRenderer' #422

Closed
opened 2026-02-27 23:00:43 +03:00 by kerem · 3 comments
Owner

Originally created by @cyperdark on GitHub (Jul 10, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/616

Describe the bug
Got this error when trying to get results from get_playlist

To Reproduce
Steps to reproduce the behavior:

  1. Auth via this https://ytmusicapi.readthedocs.io/en/stable/setup/browser.html#manual-file-creation
  2. create file .auth.json
  3. run python file.py
  4. See error

Code

from ytmusicapi import YTMusic

MUSIC = YTMusic(".auth.json", language='en')


playlists = MUSIC.get_library_playlists()
print("ID", playlists[0]['playlistId'])

items = MUSIC.get_playlist(playlists[0]['playlistId'], 100)
print(items)

Additional context

 python index.py
ID LM
Traceback (most recent call last):
  File "F:\coding\wip\yt-music-manager\index.py", line 10, in <module>
    items = MUSIC.get_playlist(playlists[0]['playlistId'], 100)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\ytmusicapi\mixins\playlists.py", line 110, in get_playlist
    results = nav(response,
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\ytmusicapi\navigation.py", line 81, in nav
    raise err
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\ytmusicapi\navigation.py", line 75, in nav
    root = root[k]
KeyError: 'singleColumnBrowseResultsRenderer'
Originally created by @cyperdark on GitHub (Jul 10, 2024). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/616 **Describe the bug** Got this error when trying to get results from ``get_playlist`` <br> **To Reproduce** Steps to reproduce the behavior: 1. Auth via this https://ytmusicapi.readthedocs.io/en/stable/setup/browser.html#manual-file-creation 2. create file `.auth.json` 3. run `python file.py` 4. See error <br> **Code** ``` from ytmusicapi import YTMusic MUSIC = YTMusic(".auth.json", language='en') playlists = MUSIC.get_library_playlists() print("ID", playlists[0]['playlistId']) items = MUSIC.get_playlist(playlists[0]['playlistId'], 100) print(items) ``` <br> **Additional context** ``` python index.py ID LM Traceback (most recent call last): File "F:\coding\wip\yt-music-manager\index.py", line 10, in <module> items = MUSIC.get_playlist(playlists[0]['playlistId'], 100) File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\ytmusicapi\mixins\playlists.py", line 110, in get_playlist results = nav(response, File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\ytmusicapi\navigation.py", line 81, in nav raise err File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\ytmusicapi\navigation.py", line 75, in nav root = root[k] KeyError: 'singleColumnBrowseResultsRenderer' ```
kerem 2026-02-27 23:00:43 +03:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@sigma67 commented on GitHub (Jul 10, 2024):

What version of ytmusicapi are you using?

<!-- gh-comment-id:2219488340 --> @sigma67 commented on GitHub (Jul 10, 2024): What version of ytmusicapi are you using?
Author
Owner

@cyperdark commented on GitHub (Jul 10, 2024):

ytmusicapi==0.25.2

<!-- gh-comment-id:2219527948 --> @cyperdark commented on GitHub (Jul 10, 2024): ytmusicapi==0.25.2
Author
Owner

@cyperdark commented on GitHub (Jul 10, 2024):

oh, i was using very old version, and i thought pip install ytmusicapi would update it but i was wrong

forced to update and now it's fine

<!-- gh-comment-id:2219542044 --> @cyperdark commented on GitHub (Jul 10, 2024): oh, i was using very old version, and i thought `pip install ytmusicapi` would update it but i was wrong forced to update and now it's fine
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#422
No description provided.