[GH-ISSUE #502] Acquiring token but running endlessly on Colab #299

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

Originally created by @QAQOAO on GitHub (May 28, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/502

I use the code below to acquire token on Google Colab.

username = 'username..'

clientID = 'id...'
clientSecret = 'secret..'
redirectURL = 'http://localhost:8888/'

token = spotipy.util.prompt_for_user_token(username, client_id=clientID, client_secret=clientSecret, redirect_uri=redirectURL)

When I execute the code, that cell just running for very long time but still not opening a page

It worked fine several months ago, but what happened?

Originally created by @QAQOAO on GitHub (May 28, 2020). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/502 I use the code below to acquire token on Google Colab. username = 'username..' clientID = 'id...' clientSecret = 'secret..' redirectURL = 'http://localhost:8888/' token = spotipy.util.prompt_for_user_token(username, client_id=clientID, client_secret=clientSecret, redirect_uri=redirectURL) When I execute the code, that cell just running for very long time but still not opening a page It worked fine several months ago, but what happened?
kerem closed this issue 2026-02-27 23:21:52 +03:00
Author
Owner

@stephanebruckert commented on GitHub (May 30, 2020):

Can Google Colab open URL and expect an answer? Are you sure this was possible before? Any chance you can try with a previous version and let us know:

pip3 install 'spotipy~=2.11.0'
pip3 install 'spotipy~=2.10.0'
pip3 install 'spotipy~=2.9.0'
... 
// stop at 2.5.0
<!-- gh-comment-id:636355084 --> @stephanebruckert commented on GitHub (May 30, 2020): Can Google Colab open URL and expect an answer? Are you sure this was possible before? Any chance you can try with a previous version and let us know: ``` pip3 install 'spotipy~=2.11.0' pip3 install 'spotipy~=2.10.0' pip3 install 'spotipy~=2.9.0' ... // stop at 2.5.0 ```
Author
Owner

@stephanebruckert commented on GitHub (Jun 30, 2020):

@QAQOAO is this still blocking you?

<!-- gh-comment-id:651928794 --> @stephanebruckert commented on GitHub (Jun 30, 2020): @QAQOAO is this still blocking you?
Author
Owner
<!-- gh-comment-id:705192234 --> @stephanebruckert commented on GitHub (Oct 7, 2020): This is what you need https://github.com/plamere/spotipy/blob/master/FAQ.md#how-do-i-obtain-authorization-in-a-headlessbrowserless-environment
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/spotipy#299
No description provided.