mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #755] AttributeError: module 'spotipy.util' has no attribute 'oauth2' during authentication flow #459
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#459
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 @Sachabanksy on GitHub (Dec 12, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/755
Hi there,
I am trying to run some code that will return playlist data however get the error:
AttributeError: module 'spotipy.util' has no attribute 'oauth2'
This occurs after attempting to run:
token = util.oauth2.SpotifyClientCredentials(client_id=CLIENT_ID, client_secret=CLIENT_SECRET)
cache_token = token.get_access_token()
sp = spotipy.Spotify(cache_token)
Very new to this, any help would be greatly appreciated, cheers.
@stephanebruckert commented on GitHub (Dec 12, 2021):
I'm not sure where you got this code from but it is wrong as
spotipy.utilclearly has no attributeoauth2Please check the README, examples, and documentation for hints on how to get started.
@dieser-niko commented on GitHub (May 1, 2024):
Closing as there's no activity.