in ()
9
10 sp = spotipy.Spotify(auth_manager=SpotifyClientCredentials(client_id=client_id,
---> 11 client_secret=client_secret))
12
13 #Choose your artist via input
1 frames
/usr/local/lib/python3.7/dist-packages/spotipy/client.py in __init__(self, auth, requests_session, client_credentials_manager, oauth_manager, auth_manager, proxies, requests_timeout, status_forcelist, retries, status_retries, backoff_factor, language)
164 else:
165 if requests_session: # Build a new session.
--> 166 self._build_session()
167 else: # Use the Requests API module as a "session".
168 self._session = requests.api
/usr/local/lib/python3.7/dist-packages/spotipy/client.py in _build_session(self)
198 status=self.status_retries,
199 backoff_factor=self.backoff_factor,
--> 200 status_forcelist=self.status_forcelist)
201
202 adapter = requests.adapters.HTTPAdapter(max_retries=retry)
**TypeError: __init__() got an unexpected keyword argument 'allowed_methods'**
**Environment:**
- OS: Windows
- Python version: 3.7
- spotipy version: latest
- your IDE: Google Colab
**Additional context**
It was working fine last week
Describe the bug I receive a TypeError when running the Spotify Credentials:
sp = spotipy.Spotify(auth_manager=SpotifyClientCredentials(client_id=client_id, client_secret=client_secret))
Your code import spotipy from spotipy.oauth2 import SpotifyClientCredentials
client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret) sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
Expected behavior No error.
Output
TypeError Traceback (most recent call last)