spotipy-dev/spotipy

Old version on pip/easy_install installation

dransho1 opened this issue ยท 24 comments

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 :)

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.

+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.

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

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

+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.

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

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.

tgurr commented

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.

+1 here.

+1

+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.

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

+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.

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

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!

+1 ! I have the 2.4.4 verison but it still does not work for me ๐Ÿ‘Ž

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

@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!

@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'

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

Can't change descriptions anymore.

pypi package is still outdated ;(

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

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