cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

spotify API get token - raw_input was called, but this frontend does not support input requests.

AlexSantiago
New Contributor II

hello everyone, I'm trying use spotify's api to analyse my music data, but i'm receiving a error during authentication, specifically when I try get the token, above my code.

Is it a databricks bug?

pip install spotipy

from spotipy.oauth2 import SpotifyOAuth

from spotipy.oauth2 import SpotifyClientCredentials

import spotipy

import spotipy.util as util

sp = spotipy.oauth2.SpotifyOAuth(client_id='client_id

                ,client_secret='client_secret

                ,redirect_uri='http://localhost:8080/callback/'

                ,requests_timeout=5, open_browser=False)

sp.get_access_token()

error:

StdinNotImplementedError: raw_input was called, but this frontend does not support input requests.

15 REPLIES 15

jack533
New Contributor III

If you need any further help you can ping me.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group