mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #455] ImportError: No module named oauth2 #268
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#268
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 @tgraf2 on GitHub (Mar 18, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/455
I recently installed spotipy using:
python -m pip install spotipy --user
which installed without errors. I then setup my spotify client ID and secret, and when I try to run the example given under "create a Spotify object and call methods" I get the following error:
ImportError: No module named oauth2
Any help on why I am getting this error? I am assuming the oauth2 module should have been installed when I installed spotipy.
@stephanebruckert commented on GitHub (Mar 18, 2020):
hmm oauth is part of spotipy so it shouldn't be missing.
If from your command line you run
pythonalone, what do you get when you type the following?Also please share the full stack traces (the one from the README example as well)
@tgraf2 commented on GitHub (Mar 18, 2020):
Hi Stéphane,
Thanks for getting back to me. I found the problem (my python script was named spotipy.py). When I renamed it everything worked.
Thanks again.
Terry