Reputation: 11
This is kinda weird. I tried a method from the readthedocs, but it just says that there is an attribute error.
AttributeError: 'Spotify' object has no attribute 'devices'
The code is as follows:
import spotipy.util as util
import spotipy
(token left out for security reasons)
sp = spotipy.client.Spotify(auth=token)
sp.trace = True
sp.trace_out = True
print(sp.devices())
Upvotes: 0
Views: 587
Reputation: 11
This is rather odd.
Turns out the version installed by pip, although it says it's the latest version, it isn't.
Downloaded the latest version from the Github, and put it in my project workspace. Works great!
Upvotes: 1