mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #836] flask session cache handler in 2.20.0 #515
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#515
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gabylorenzi on GitHub (Jul 7, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/836
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
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
[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 commented on GitHub (Aug 22, 2022):
I need to release 2.21.0 for it to be available. For now you can use master or a specific commit.
@ckahle33 commented on GitHub (Oct 26, 2022):
would love to use this with flask as well.
@stephanebruckert commented on GitHub (Oct 29, 2022):
Done, please upgrade :-) https://pypi.org/project/spotipy/2.21.0/
@ckahle33 commented on GitHub (Nov 1, 2022):
Thank you so much Stephane and team for your work on spotipy!