Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flask session cache handler in 2.20.0 #836

Closed
gabylorenzi opened this issue Jul 7, 2022 · 4 comments
Closed

flask session cache handler in 2.20.0 #836

gabylorenzi opened this issue Jul 7, 2022 · 4 comments
Labels

Comments

@gabylorenzi
Copy link

code i am running
python3 auth-test.py (a renamed version of app.py from the 2.20.0 version of spotipy)

environment:
python3
pip3
spotipy=2.20.0

error message:
`python3 auth-test.py

  • Serving Flask app 'auth-test' (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://127.0.0.1:8080 (Press CTRL+C to quit)
    [2022-07-06 20:08:26,738] ERROR in app: Exception on / [GET]
    Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/app.py", line 2077, in wsgi_app
    response = self.full_dispatch_request()
    File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/app.py", line 1525, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
    File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
    File "auth-test.py", line 41, in index
    cache_handler = spotipy.cache_handler.FlaskSessionCacheHandler(session)
    AttributeError: module 'spotipy.cache_handler' has no attribute 'FlaskSessionCacheHandler'`

I can see that there is a newly added flask session cache handler in the version 2.20.0, but despite having the latest version of spottily installed, i am getting an error. would love any help! thanks in advance!

@stephanebruckert
Copy link
Member

I need to release 2.21.0 for it to be available. For now you can use master or a specific commit.

@ckahle33
Copy link

would love to use this with flask as well.

@stephanebruckert
Copy link
Member

Done, please upgrade :-) https://pypi.org/project/spotipy/2.21.0/

@ckahle33
Copy link

ckahle33 commented Nov 1, 2022

Thank you so much Stephane and team for your work on spotipy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants