[GH-ISSUE #808] Multiple Arguments passed to 'device_id' #504

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

Originally created by @9u3 on GitHub (May 15, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/808

I am trying to start playback on a device using

current = sp.devices()['devices'][0]['id']
sp.start_playback(track, device_id=current)

It errors saying that I passed more than 1 id? How can that be possible.
The ID is '5434252d-e980-4422-9a69-49401104e929_amzn_1'

Full Traceback:

Traceback (most recent call last):
  File "main.py", line 57, in getTrackID
    self.playsong(tid)
  File "main.py", line 84, in playsong
    sp.start_playback(track, device_id=current)
TypeError: start_playback() got multiple values for argument 'device_id'
Originally created by @9u3 on GitHub (May 15, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/808 I am trying to start playback on a device using ```python current = sp.devices()['devices'][0]['id'] sp.start_playback(track, device_id=current) ```` It errors saying that I passed more than 1 id? How can that be possible. The ID is '5434252d-e980-4422-9a69-49401104e929_amzn_1' Full Traceback: ``` Traceback (most recent call last): File "main.py", line 57, in getTrackID self.playsong(tid) File "main.py", line 84, in playsong sp.start_playback(track, device_id=current) TypeError: start_playback() got multiple values for argument 'device_id' ```
kerem 2026-02-27 23:22:59 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@Peter-Schorn commented on GitHub (May 15, 2022):

Look closely at the parameters for start_playback:

github.com/plamere/spotipy@9a627e88f4/spotipy/client.py (L1728-L1770)

<!-- gh-comment-id:1126896071 --> @Peter-Schorn commented on GitHub (May 15, 2022): Look closely at the parameters for `start_playback`: https://github.com/plamere/spotipy/blob/9a627e88f422927822ce39ae9919cc7ab9813dde/spotipy/client.py#L1728-L1770
Author
Owner

@9u3 commented on GitHub (May 16, 2022):

Look closely at the parameters for start_playback:

github.com/plamere/spotipy@9a627e88f4/spotipy/client.py (L1728-L1770)

Ah. I really should have read that better. Thanks for helping. ^^

<!-- gh-comment-id:1127191602 --> @9u3 commented on GitHub (May 16, 2022): > Look closely at the parameters for `start_playback`: > > https://github.com/plamere/spotipy/blob/9a627e88f422927822ce39ae9919cc7ab9813dde/spotipy/client.py#L1728-L1770 Ah. I really should have read that better. Thanks for helping. ^^
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#504
No description provided.