mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #838] I try example app.py but still got error AttributeError: module 'spotipy.cache_handler' has no attribute 'FlaskSessionCachceHandler' #519
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#519
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 @febridev on GitHub (Jul 10, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/838
I try using example code from this repo filename is app.py but I still got error
AttributeError: module 'spotipy.cache_handler' has no attribute 'FlaskSessionCachceHandler'I copy and paste and follow the instruction but still got error on above
when I change the attribute to MemoryCacheHandler I can't login
@Aspecky commented on GitHub (Jul 11, 2022):
That's because for some reason the spotipy that comes by using
pip install spotipyisn't up to date with the github, so what I did to fix the issue is:cd your_project_dirpython3 -m venv venv> On linux you need to installpython3-pipandpython3-venvpackages first.spotipyand your other packages if you need.venvfolder, navigate tovenv/lib64/python3.10/site-packages/spotipycache_handler.py, go here and copy that and paste it in that file.@stephanebruckert commented on GitHub (Aug 22, 2022):
Duplicate of https://github.com/plamere/spotipy/issues/838