[GH-ISSUE #140] [BUG] Key Error ! #104

Open
opened 2026-03-04 12:29:00 +03:00 by kerem · 7 comments
Owner

Originally created by @Bean-alt on GitHub (Jul 17, 2024).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/140

Describe the bug
I Use release build for windows. Python Key Error hapens with 'genres', 'tracks' and 'name' when i tried to download some song titles. A very few titles aren't affected (about five titles) but most of the titles comes with either of above key errors. i can't try anything after this error, i have to reload the program to retry for another title. i use premium account(idk this matters). i tried both ffm bundled and non bundeld builds. also i tried removing and re logging the account. i tried changing some options in gui but non of these worked for me so far. im not a programing guy but i suspect this is having some problems with getting metadata for song id or having trouble with the site.

To Reproduce
Steps to reproduce the behavior:

  1. Try : https://open.spotify.com/track/2I5ij1TxbSFDqQI1Aw42Zd?si=c6813783a7f641f3
  2. Try : https://open.spotify.com/track/4FSY456pOwDebYAv5TtytK?si=effcebb0a4c849e4

Console
----01----

[2024-07-17 18:43:15,058 :: gui.main_ui :: gui\mainui.py -> 587:__get_search_results() :: INFO] -> Search clicked with value term ru ra
[2024-07-17 18:43:15,071 :: spotutils :: utils\spotify.py -> 247: search_by_term() :: INFO] -> Get search result for term 'ru ra', max items '10'
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
[2024-07-17 18:43:19,026 :: gui.main_ui :: gui\mainui.py -> 759: __send_to_pqp() :: INFO] -> Prepared media for parsing, adding to PQP queue !
[2024-07-17 18:43:19,287 :: spotutils :: utils\spotify.py -> 97: sanitize_data() :: INFO] -> Sanitising string: "Sanjula himala"; Allow path separators: False
[2024-07-17 18:43:19,287 :: spotutils :: utils\spotify.py -> 97: sanitize_data() :: INFO] -> Sanitising string: "Ru Ra"; Allow path separators: False
[2024-07-17 18:43:19,287 :: spotutils :: utils\spotify.py -> 97: sanitize_data() :: INFO] -> Sanitising string: "Ru Ra"; Allow path separators: False
[2024-07-17 18:43:19,287 :: runtimedata :: runtimedata.py -> 49: handle_exception() :: CRITICAL] -> Uncaught exception
Traceback (most recent call last):
File "worker\utility.py", line 227, in run
File "utils\spotify.py", line 316, in get_song_info
KeyError: 'genres'

---02---
[2024-07-17 18:54:46,801 :: gui.main_ui :: gui\mainui.py -> 587:__get_search_results() :: INFO] -> Search clicked with value term hithak thibuna
[2024-07-17 18:54:46,803 :: spotutils :: utils\spotify.py -> 247: search_by_term() :: INFO] -> Get search result for term 'hithak thibuna', max items '10'
OpenType support missing for "MS Shell Dlg 2", script 20
OpenType support missing for "Arial", script 20
OpenType support missing for "MS UI Gothic", script 20
OpenType support missing for "SimSun", script 20
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
[2024-07-17 18:54:52,497 :: gui.main_ui :: gui\mainui.py -> 759: __send_to_pqp() :: INFO] -> Prepared media for parsing, adding to PQP queue !
[2024-07-17 18:54:52,680 :: runtimedata :: runtimedata.py -> 49: handle_exception() :: CRITICAL] -> Uncaught exception
Traceback (most recent call last):
File "worker\utility.py", line 227, in run
File "utils\spotify.py", line 295, in get_song_info
KeyError: 'tracks'

System Information (please complete the following information):

  • OS: [Windows 10]
  • OnTheSpot Version: [0.5]

Additional context
Please look into this if you have time. I can try out build form source.

Originally created by @Bean-alt on GitHub (Jul 17, 2024). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/140 **Describe the bug** I Use release build for windows. Python Key Error hapens with 'genres', 'tracks' and 'name' when i tried to download some song titles. A very few titles aren't affected (about five titles) but most of the titles comes with either of above key errors. i can't try anything after this error, i have to reload the program to retry for another title. i use premium account(idk this matters). i tried both ffm bundled and non bundeld builds. also i tried removing and re logging the account. i tried changing some options in gui but non of these worked for me so far. im not a programing guy but i suspect this is having some problems with getting metadata for song id or having trouble with the site. **To Reproduce** Steps to reproduce the behavior: 1. Try : https://open.spotify.com/track/2I5ij1TxbSFDqQI1Aw42Zd?si=c6813783a7f641f3 2. Try : https://open.spotify.com/track/4FSY456pOwDebYAv5TtytK?si=effcebb0a4c849e4 **Console** ----01---- [2024-07-17 18:43:15,058 :: gui.main_ui :: gui\mainui.py -> 587:__get_search_results() :: INFO] -> Search clicked with value term ru ra [2024-07-17 18:43:15,071 :: spotutils :: utils\spotify.py -> 247: search_by_term() :: INFO] -> Get search result for term 'ru ra', max items '10' QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap [2024-07-17 18:43:19,026 :: gui.main_ui :: gui\mainui.py -> 759: __send_to_pqp() :: INFO] -> Prepared media for parsing, adding to PQP queue ! [2024-07-17 18:43:19,287 :: spotutils :: utils\spotify.py -> 97: sanitize_data() :: INFO] -> Sanitising string: "Sanjula himala"; Allow path separators: False [2024-07-17 18:43:19,287 :: spotutils :: utils\spotify.py -> 97: sanitize_data() :: INFO] -> Sanitising string: "Ru Ra"; Allow path separators: False [2024-07-17 18:43:19,287 :: spotutils :: utils\spotify.py -> 97: sanitize_data() :: INFO] -> Sanitising string: "Ru Ra"; Allow path separators: False [2024-07-17 18:43:19,287 :: runtimedata :: runtimedata.py -> 49: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 227, in run File "utils\spotify.py", line 316, in get_song_info KeyError: 'genres' ---02--- [2024-07-17 18:54:46,801 :: gui.main_ui :: gui\mainui.py -> 587:__get_search_results() :: INFO] -> Search clicked with value term hithak thibuna [2024-07-17 18:54:46,803 :: spotutils :: utils\spotify.py -> 247: search_by_term() :: INFO] -> Get search result for term 'hithak thibuna', max items '10' OpenType support missing for "MS Shell Dlg 2", script 20 OpenType support missing for "Arial", script 20 OpenType support missing for "MS UI Gothic", script 20 OpenType support missing for "SimSun", script 20 QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap qt.gui.icc: fromIccProfile: failed minimal tag size sanity qt.gui.icc: fromIccProfile: failed minimal tag size sanity [2024-07-17 18:54:52,497 :: gui.main_ui :: gui\mainui.py -> 759: __send_to_pqp() :: INFO] -> Prepared media for parsing, adding to PQP queue ! [2024-07-17 18:54:52,680 :: runtimedata :: runtimedata.py -> 49: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 227, in run File "utils\spotify.py", line 295, in get_song_info KeyError: 'tracks' **System Information (please complete the following information):** - OS: [Windows 10] - OnTheSpot Version: [0.5] **Additional context** Please look into this if you have time. I can try out build form source.
Author
Owner

@espdav commented on GitHub (Jul 17, 2024):

i am having the same error

<!-- gh-comment-id:2233695504 --> @espdav commented on GitHub (Jul 17, 2024): i am having the same error
Author
Owner

@espdav commented on GitHub (Jul 24, 2024):

any fix on this?

<!-- gh-comment-id:2247531826 --> @espdav commented on GitHub (Jul 24, 2024): any fix on this?
Author
Owner

@justin025 commented on GitHub (Jul 25, 2024):

The following build may work, it's from the following PR https://github.com/casualsnek/onthespot/pull/138. Let me know if it works.

https://gofile.io/d/Tw3xp3

<!-- gh-comment-id:2250018171 --> @justin025 commented on GitHub (Jul 25, 2024): The following build may work, it's from the following PR https://github.com/casualsnek/onthespot/pull/138. Let me know if it works. https://gofile.io/d/Tw3xp3
Author
Owner

@espdav commented on GitHub (Jul 26, 2024):

The following build may work, it's from the following PR #138. Let me know if it works.

https://gofile.io/d/Tw3xp3

do you have a windows build? i do not have linux

<!-- gh-comment-id:2253001159 --> @espdav commented on GitHub (Jul 26, 2024): > The following build may work, it's from the following PR #138. Let me know if it works. > > https://gofile.io/d/Tw3xp3 do you have a windows build? i do not have linux
Author
Owner

@espdav commented on GitHub (Jul 27, 2024):

hey mate, how do i install it on Windows? @justin025

<!-- gh-comment-id:2254120657 --> @espdav commented on GitHub (Jul 27, 2024): hey mate, how do i install it on Windows? @justin025
Author
Owner

@Bean-alt commented on GitHub (Jul 29, 2024):

Correction: Only few titles were affected at that time. i was able to download most of other titles. I seem to have tried every one in sequence that affected with this problem. Sorry if I mislead.

@justin025 Thanks for looking into this. I looked at your folk it seems to be the solution but i haven't tried your build yet. i will try it when its merged. thanks again. Btw, Have you tried above example links with new build?.

<!-- gh-comment-id:2255594738 --> @Bean-alt commented on GitHub (Jul 29, 2024): **Correction**: Only few titles were affected at that time. i was able to download most of other titles. I seem to have tried every one in sequence that affected with this problem. Sorry if I mislead. @justin025 Thanks for looking into this. I looked at your folk it seems to be the solution but i haven't tried your build yet. i will try it when its merged. thanks again. Btw, Have you tried above example links with new build?.
Author
Owner

@justin025 commented on GitHub (Aug 7, 2024):

Windows build with all the latest pull requests: https://gofile.io/d/s7YUE2

not sure if it actually fixes the issue.

@Bean-alt I hope casualsnek merges my pr but i wouldn't count on it, he hasn't pushed a commit to this repo in over a year. If in a few months there isn't any activity I may fork the repo to maintain the project if there's still community interest.

Btw, Have you tried above example links with new build?.

From what i understand, key errors only occur on windows, my previous link was a linux build. Even on my windows build i haven't experienced key errors, id have to read into your logs further

<!-- gh-comment-id:2272491519 --> @justin025 commented on GitHub (Aug 7, 2024): Windows build with all the latest pull requests: https://gofile.io/d/s7YUE2 not sure if it actually fixes the issue. @Bean-alt I hope casualsnek merges my pr but i wouldn't count on it, he hasn't pushed a commit to this repo in over a year. If in a few months there isn't any activity I may fork the repo to maintain the project if there's still community interest. > Btw, Have you tried above example links with new build?. From what i understand, key errors only occur on windows, my previous link was a linux build. Even on my windows build i haven't experienced key errors, id have to read into your logs further
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/onthespot#104
No description provided.