[GH-ISSUE #231] Playback commands are not in the PIP package #121

Closed
opened 2026-02-27 23:20:56 +03:00 by kerem · 3 comments
Owner

Originally created by @gawaineo on GitHub (Nov 9, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/231

When I install spotipy via PIP and try to run a playback command, they are not found in the package.
Commands such as start_playback, next_track, previous_track. I also checked the site-packages folder inside my virtual environment and in the source code those methods are not found.

Traceback (most recent call last):
  File "spot.py", line 19, in <module>
    spotify.previous_track()
AttributeError: 'Spotify' object has no attribute 'previous_track'

When I clone the repo, and install via setup.py install, the playback commands work fine, but it would be nice to have it work when you install via PIP.

Originally created by @gawaineo on GitHub (Nov 9, 2017). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/231 When I install spotipy via PIP and try to run a playback command, they are not found in the package. Commands such as **start_playback, next_track, previous_track**. I also checked the site-packages folder inside my virtual environment and in the source code those methods are not found. ``` Traceback (most recent call last): File "spot.py", line 19, in <module> spotify.previous_track() AttributeError: 'Spotify' object has no attribute 'previous_track' ``` When I clone the repo, and install via setup.py install, the playback commands work fine, but it would be nice to have it work when you install via PIP.
kerem closed this issue 2026-02-27 23:20:56 +03:00
Author
Owner

@ritiek commented on GitHub (Nov 10, 2017):

+1 on this. Although #211 talks about the same problem.

<!-- gh-comment-id:343487642 --> @ritiek commented on GitHub (Nov 10, 2017): +1 on this. Although #211 talks about the same problem.
Author
Owner

@PillPall commented on GitHub (Apr 25, 2018):

Same for the option cache_path in oauth2.py.

<!-- gh-comment-id:384283629 --> @PillPall commented on GitHub (Apr 25, 2018): Same for the option `cache_path` in oauth2.py.
Author
Owner

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

This should be fixed with version 2.5.0, just do:

pip install spotipy --upgrade
<!-- gh-comment-id:573339093 --> @stephanebruckert commented on GitHub (Jan 11, 2020): This should be fixed with version 2.5.0, just do: 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#121
No description provided.