[GH-ISSUE #410] A lot of attributes are not working for me #244

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

Originally created by @RANKKY-YT on GitHub (Jan 8, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/410

Hey guys,
so I tried to get the current_playback() do see what is playing right now. That doesnt work. Neither does current_user_playing_track() nor currently_playing(). It always troughts me the same error:

Traceback (most recent call last):
File "spoti.py", line 27, in
track = spotifyObject.currently_playing()
AttributeError: 'Spotify' object has no attribute 'currently_playing'

Thats the important part of my code:

spotifyObject = spotipy.Spotify(auth=token)

track = spotifyObject.currently_playing()
artist = track['item']['artist'][0]['name']
track = track['item']['name']

Moreover, there are other things that doesnt seem to be working for me:

spotifyObject.devices()
spotifyObject.start_playback

I got the device ID on the official Spotify developer page (https://developer.spotify.com/console/get-users-available-devices/), but its now hardcoded.

I hope someone can help me?!
Thanks

Originally created by @RANKKY-YT on GitHub (Jan 8, 2020). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/410 Hey guys, so I tried to get the `current_playback()` do see what is playing right now. That doesnt work. Neither does `current_user_playing_track()` nor `currently_playing()`. It always troughts me the same error: Traceback (most recent call last): File "spoti.py", line 27, in <module> track = spotifyObject.currently_playing() AttributeError: 'Spotify' object has no attribute 'currently_playing' Thats the important part of my code: `spotifyObject = spotipy.Spotify(auth=token)` `track = spotifyObject.currently_playing()` `artist = track['item']['artist'][0]['name']` `track = track['item']['name']` Moreover, there are other things that doesnt seem to be working for me: `spotifyObject.devices()` `spotifyObject.start_playback` I got the device ID on the official Spotify developer page (https://developer.spotify.com/console/get-users-available-devices/), but its now hardcoded. I hope someone can help me?! Thanks
kerem closed this issue 2026-02-27 23:21:36 +03:00
Author
Owner

@ritiek commented on GitHub (Jan 8, 2020):

Might be related to #337.

<!-- gh-comment-id:572179073 --> @ritiek commented on GitHub (Jan 8, 2020): Might be related to #337.
Author
Owner

@stephanebruckert commented on GitHub (Jan 11, 2020):

Most likely @ritiek is right. Please upgrade your version of spotipy and it should work:

pip install spotipy --upgrade
<!-- gh-comment-id:573338089 --> @stephanebruckert commented on GitHub (Jan 11, 2020): Most likely @ritiek is right. Please upgrade your version of spotipy and it should work: pip install spotipy --upgrade
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#244
No description provided.