mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #1164] Spotipy does not create .cache file after cloning #686
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#686
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ethannwong on GitHub (Nov 2, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1164
Describe the bug
I wrote a script to print a list of liked songs on Spotify which works on my old windows 10 laptop. I pushed the code to my repository and it does not work after I clone it on my new windows 11 laptop. Everything is the same, including the client id and secret. Running this code on my windows 11 laptop opens the authorization/permissions page on Spotify and if I click agree, it refreshes and does nothing if and if click one more time it shows a reload/buffer icon but doesn't do anything no matter how long I wait. My terminal seems to be waiting for something that doesn't come so I have to manually kill it because ctrl C doesn't work. I believe this is because there is no .cache file which I have on my old laptop but somehow isn't generated on my new one. Also when I run this code, my laptop opens the
Your code
Expected behavior


On my old laptop it should return a list of songs in my liked playlist, but my terminal is left waiting for something
Output
The permissions/auth page
My terminal
Paste and format errors (with complete stacktrace) or logs. Make sure to remove sensitive information.
Environment:
Additional context
Add any other context about the problem here.
@ethannwong commented on GitHub (Nov 2, 2024):
gif of it not working
@dieser-niko commented on GitHub (Nov 2, 2024):
My guess is that the temporary web server is not available. As a workaround, I'd recommend setting
open_browser=Falselike this:This will prevent the http server from starting, but it's a bit more work.
As for the non-working server, I can't really pinpoint the problem. It could be an updated requirement for one of your other packages, or just another application on your system.
Can you make sure that the authentication flow works in a virtual environment with just spotipy installed?
@ethannwong commented on GitHub (Nov 2, 2024):
I think I removed my email I was using as one of the test users for some reason. I added it back and everything works now! Thank you so much!
@dieser-niko commented on GitHub (Nov 3, 2024):
Thanks for the reply, I actually didn't know about this behaviour.