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

Playlist loading will quit after a while #28

Closed
sweiner123 opened this issue Oct 25, 2023 · 2 comments
Closed

Playlist loading will quit after a while #28

sweiner123 opened this issue Oct 25, 2023 · 2 comments
Assignees

Comments

@sweiner123
Copy link

Hi,

I've successfully used your package on a playlist of 16 songs. Its really great so far!

I have a playlist of 196 songs, and the process after running sp.get_playlist_features(playlist_id) will abort eventually.

I'll get the following in the console:

>>> playlist_df_hadar = sp.get_playlist_features(playlist_id)
Couldn't write token to cache at: .cache
Couldn't write token to cache at: .cache
Loading songs from Janes Songs: |-------------------------------------------------------------------------------------------------Couldn't write token to cache at: .cache
Couldn't write token to cache at: .cache
Loading songs from Janes Songs: |█------------------------------------------------------------------------------------------------Couldn't write token to cache at: .cache
Couldn't write token to cache at: .cache
Loading songs from Janes Songs: |█------------------------------------------------------------------------------------------------Couldn't write token to cache at: .cache
Couldn't write token to cache at: .cache
Loading songs from Janes Songs: |██-----------------------------------------------------------------------------------------------Couldn't write token to cache at: .cache
Couldn't write token to cache at: .cache

This continuously brings up a new web page and the bar grows (I'm using localhost:8080). Then at some point I will get a long traceback with this error at the end.

spotipy.oauth2.SpotifyOauthError: Server listening on localhost has not been accessed

Not sure why this isn't working for this playlist. Maybe its the length? I would appreciate any insight you have! Or if you want to try this out for yourself, the playlist url is https://open.spotify.com/playlist/3PVerO7biDGJFGfr2YebKF

@robalberse robalberse self-assigned this Oct 26, 2023
@robalberse
Copy link
Owner

Hey @sweiner123 - been running some tests, I presume the length of the playlist isn't the issue. I was just able to run sp.get_playlist_features on a very large playlist before hitting the API call limit around 2000 songs.

I would check out this issue from spotipy's repo for some ideas on a fix: spotipy-dev/spotipy#363. Might be related to some security features on your machine.

Keep me posted, happy to hear you've been enjoying it at least in a limited manner!

@robalberse
Copy link
Owner

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants