[GH-ISSUE #211] Old version on pip/easy_install installation #107

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

Originally created by @dransho1 on GitHub (Sep 6, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/211

I believe there is an issue with spotipy pip and easy_install installation. I installed the library today through both install methods, but both came with old versions of the source code. I noticed some lines in spotipy/oauth2.py that were different from the most current version. The discrepancy is from a change made in a Jan 2017 commit that fixed a scope issue. My installation versions with pip and easy_install both did not have this fix.

This could easily just be me and my own mistakes, but I wanted to see if others were having a similar issue. Other than this I've been loving the API wrapper :)

Originally created by @dransho1 on GitHub (Sep 6, 2017). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/211 I believe there is an issue with spotipy `pip` and `easy_install` installation. I installed the library today through both install methods, but both came with old versions of the source code. I noticed some lines in `spotipy/oauth2.py` that were different from the most current version. The discrepancy is from a change made in a Jan 2017 [commit](https://github.com/plamere/spotipy/commit/4f15a6f07ef3abad386eb81db09c539e25011b70#diff-6199691643e8741165f15d90d5e4e6c8) that fixed a scope issue. My installation versions with `pip` and `easy_install` both did not have this fix. This could easily just be me and my own mistakes, but I wanted to see if others were having a similar issue. Other than this I've been loving the API wrapper :)
kerem closed this issue 2026-02-27 23:20:52 +03:00
Author
Owner

@seelengut commented on GitHub (Oct 1, 2017):

I'm seeing the same discrepancies on my end. For instance, the API devices() from client.py is not present when using pip. pip states that version is 2.4.4, which would be the most recent one.

<!-- gh-comment-id:333415996 --> @seelengut commented on GitHub (Oct 1, 2017): I'm seeing the same discrepancies on my end. For instance, the API devices() from client.py is not present when using pip. pip states that version is 2.4.4, which would be the most recent one.
Author
Owner

@tonyravioli commented on GitHub (Oct 5, 2017):

+1 on this. Spent a while trying to debug why a simple function wasn't working... Turns out it doesn't exist in my version of the code. I ran pip3 install spotipy to install it.

<!-- gh-comment-id:334580260 --> @tonyravioli commented on GitHub (Oct 5, 2017): +1 on this. Spent a while trying to debug why a simple function wasn't working... Turns out it doesn't exist in my version of the code. I ran `pip3 install spotipy` to install it.
Author
Owner

@hypecycle commented on GitHub (Oct 6, 2017):

Same here. pip3 install spotipy echoes Successfully installed spotipy-2.4.4. Anyway, spotipy.VERSION in python3.5 produces 2.0.1.

<!-- gh-comment-id:334699208 --> @hypecycle commented on GitHub (Oct 6, 2017): Same here. `pip3 install spotipy` echoes `Successfully installed spotipy-2.4.4`. Anyway, `spotipy.VERSION` in python3.5 produces `2.0.1`.
Author
Owner

@nicolewagoner commented on GitHub (Oct 21, 2017):

Ah! This just bit me too.. Glad I'm not alone. Would be super awesome to get a more up-to-date version 😄

These are the steps that I took:

  • Go to https://pypi.python.org/pypi/spotipy/2.4.4
  • Download and untar package and navigate to location in conosole
  • cat Downloads/spotipy-2.4.4/spotipy/__init__.py gives output VERSION='2.0.1'
  • Also note oauth2.get_authorize_url() doesn't support state or show_dialog parameters in this version, though they are listed in the repo
<!-- gh-comment-id:338429651 --> @nicolewagoner commented on GitHub (Oct 21, 2017): Ah! This just bit me too.. Glad I'm not alone. Would be super awesome to get a more up-to-date version 😄 These are the steps that I took: - Go to https://pypi.python.org/pypi/spotipy/2.4.4 - Download and untar package and navigate to location in conosole - `cat Downloads/spotipy-2.4.4/spotipy/__init__.py` gives output `VERSION='2.0.1'` - Also note oauth2.get_authorize_url() doesn't support state or show_dialog parameters in this version, though they are listed in the repo
Author
Owner

@Kalaborative commented on GitHub (Oct 24, 2017):

+1 on this. It seems a lot of the newer functions are missing, too. Keep running into AttributeErrors because of this. Will install this manually.

<!-- gh-comment-id:339025163 --> @Kalaborative commented on GitHub (Oct 24, 2017): +1 on this. It seems a lot of the newer functions are missing, too. Keep running into `AttributeError`s because of this. Will install this manually.
Author
Owner

@tiosolid commented on GitHub (Nov 1, 2017):

+1. Some playlist function prototypes are missing some newer parameters (like description) but the repository code already have them

<!-- gh-comment-id:341275588 --> @tiosolid commented on GitHub (Nov 1, 2017): +1. Some playlist function prototypes are missing some newer parameters (like description) but the repository code already have them
Author
Owner

@wbolster commented on GitHub (Nov 3, 2017):

it would be great if @plamere could tag a new release (no git tags currently?) and upload a new version to pypi so that others can enjoy the goodies from the latest version of the code.

<!-- gh-comment-id:341827826 --> @wbolster commented on GitHub (Nov 3, 2017): it would be great if @plamere could tag a new release (no git tags currently?) and upload a new version to pypi so that others can enjoy the goodies from the latest version of the code.
Author
Owner

@tgurr commented on GitHub (Nov 20, 2017):

I second that request, right now distributions have to add various patches to have a proper spotipy package. Please do a new release on pypi that we can package.

<!-- gh-comment-id:345745042 --> @tgurr commented on GitHub (Nov 20, 2017): I second that request, right now distributions have to add various patches to have a proper spotipy package. Please do a new release on pypi that we can package.
Author
Owner

@fuzzwell commented on GitHub (Jan 22, 2018):

+1 here.

<!-- gh-comment-id:359301790 --> @fuzzwell commented on GitHub (Jan 22, 2018): +1 here.
Author
Owner

@poiley commented on GitHub (Feb 2, 2018):

+1

<!-- gh-comment-id:362737483 --> @poiley commented on GitHub (Feb 2, 2018): +1
Author
Owner

@AKShaw commented on GitHub (Feb 3, 2018):

+1, both pip and a manual install from the tar.gz on pypi install 2.0.1, even though the pypi version is called "spotipy-2.4.4". Keep getting AttributeErrors as a result.

<!-- gh-comment-id:362847836 --> @AKShaw commented on GitHub (Feb 3, 2018): +1, both pip and a manual install from the tar.gz on pypi install 2.0.1, even though the pypi version is called "spotipy-2.4.4". Keep getting AttributeErrors as a result.
Author
Owner

@acmiyaguchi commented on GitHub (Mar 2, 2018):

If you're running into issues still, you can install the package directly from the github repo.

pip install git+https://github.com/plamere/spotipy.git --upgrade

<!-- gh-comment-id:369863112 --> @acmiyaguchi commented on GitHub (Mar 2, 2018): If you're running into issues still, you can install the package directly from the github repo. `pip install git+https://github.com/plamere/spotipy.git --upgrade`
Author
Owner

@hmhrex commented on GitHub (Apr 3, 2018):

+1 - Would love a new version to pull from pypi!

@acmiyaguchi - Thanks for the work around! That will work for me for the time being.

<!-- gh-comment-id:378324630 --> @hmhrex commented on GitHub (Apr 3, 2018): +1 - Would love a new version to pull from pypi! @acmiyaguchi - Thanks for the work around! That will work for me for the time being.
Author
Owner

@R3vpanda commented on GitHub (Apr 30, 2018):

Bump would like to see this working let me know if i can help!

<!-- gh-comment-id:385307673 --> @R3vpanda commented on GitHub (Apr 30, 2018): Bump would like to see this working let me know if i can help!
Author
Owner

@JessicaMartini212887 commented on GitHub (May 11, 2018):

I read this issue and I have tried to solve the problem. Running !pip freeze it results that the spotipy version is 2.4.4, so why it doens't recognize the new functions as current_user_recently_played ???? Help me please!

<!-- gh-comment-id:388399735 --> @JessicaMartini212887 commented on GitHub (May 11, 2018): I read this issue and I have tried to solve the problem. Running !pip freeze it results that the spotipy version is 2.4.4, so why it doens't recognize the new functions as current_user_recently_played ???? Help me please!
Author
Owner

@jerrywxue commented on GitHub (May 14, 2018):

+1 ! I have the 2.4.4 verison but it still does not work for me 👎

<!-- gh-comment-id:388677152 --> @jerrywxue commented on GitHub (May 14, 2018): +1 ! I have the 2.4.4 verison but it still does not work for me 👎
Author
Owner

@discotwitch commented on GitHub (May 15, 2018):

+1, I had the same issue. This fix worked for me

<!-- gh-comment-id:389078498 --> @discotwitch commented on GitHub (May 15, 2018): +1, I had the same issue. [This](https://stackoverflow.com/questions/47028093/attributeerror-spotify-object-has-no-attribute-current-user-saved-tracks) fix worked for me
Author
Owner

@zhammer commented on GitHub (Jul 16, 2018):

@plamere Hey plamere. What's the best way to push the current spotipy repo to pypi? Even if there's no future maintenance, it'd be great to update the pypi package!

<!-- gh-comment-id:405132486 --> @zhammer commented on GitHub (Jul 16, 2018): @plamere Hey plamere. What's the best way to push the current spotipy repo to pypi? Even if there's no future maintenance, it'd be great to update the pypi package!
Author
Owner

@rperkett-r7 commented on GitHub (Jul 25, 2018):

@zhammer Do you know how to solve these above issues by any chance?

I still get the following -

File "testing.py", line 50, in
devices = sp.devices()
AttributeError: 'Spotify' object has no attribute 'devices'

<!-- gh-comment-id:407886939 --> @rperkett-r7 commented on GitHub (Jul 25, 2018): @zhammer Do you know how to solve these above issues by any chance? I still get the following - File "testing.py", line 50, in <module> devices = sp.devices() AttributeError: 'Spotify' object has no attribute 'devices'
Author
Owner

@FrostiFish commented on GitHub (May 9, 2019):

This issue isn't fixed, still getting the wrong version on pip. Any chance this will ever get fixed?

<!-- gh-comment-id:490939476 --> @FrostiFish commented on GitHub (May 9, 2019): This issue isn't fixed, still getting the wrong version on pip. Any chance this will ever get fixed?
Author
Owner

@shillshocked commented on GitHub (Jun 24, 2019):

Can't change descriptions anymore.

<!-- gh-comment-id:504842443 --> @shillshocked commented on GitHub (Jun 24, 2019): Can't change descriptions anymore.
Author
Owner

@alhockly commented on GitHub (Jul 28, 2019):

pypi package is still outdated ;(

<!-- gh-comment-id:515796131 --> @alhockly commented on GitHub (Jul 28, 2019): pypi package is still outdated ;(
Author
Owner

@felix-hilden commented on GitHub (Aug 18, 2019):

As this is a fairly popular thread as well, it might be worth mentioning that several updated / rewritten versions of Spotipy are brewing.

<!-- gh-comment-id:522336744 --> @felix-hilden commented on GitHub (Aug 18, 2019): As this is a fairly popular thread as well, it might be worth mentioning that several updated / rewritten versions of Spotipy are [brewing](https://github.com/plamere/spotipy/issues/387#issuecomment-522219646).
Author
Owner

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

Just released 2.5.0 which contains everything from 2.4.4 as well as everything that was merged to master but never released

pip install spotipy --upgrade

If doing so, also make sure to remove git+https://github.com/plamere/spotipy.git from your requirements.txt

<!-- gh-comment-id:573338717 --> @stephanebruckert commented on GitHub (Jan 11, 2020): Just released [2.5.0](https://github.com/plamere/spotipy/releases/tag/2.5.0) which contains everything from 2.4.4 as well as everything that was merged to master but never released pip install spotipy --upgrade If doing so, also make sure to remove `git+https://github.com/plamere/spotipy.git` from your `requirements.txt`
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#107
No description provided.