mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #131] Module Error #59
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#59
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 @jsclose on GitHub (Nov 17, 2016).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/131
After installing the spotipy package, I am still getting an error while trying to run the sample code
File "spotipy.py", line 1, in
import spotipy
File "/Users/jakeclose/Sites/personal/spotipy.py", line 10, in
sp = spotipy.Spotify()
AttributeError: 'module' object has no attribute 'Spotify'
@yu-zou commented on GitHub (Jan 4, 2017):
Hi jsclose.
I got the same error. Did you fixt it?
Thanks.
@yu-zou commented on GitHub (Jan 4, 2017):
Okay, I got the problem.
Change the name. You could not name it as spotipy.py. Otherwise, the attribute 'Spotify' will be searched within your spotipy.py file. Obviously, you don't have any object defined in your code.
@umar-farooq-khan commented on GitHub (Sep 10, 2019):
i dont have the file name as spotipy or spotipy both,but i still got this error
@YuxiaoLuo commented on GitHub (Nov 18, 2021):
I got the same error... Did you solve it @umar-farooq-khan?
@stephanebruckert commented on GitHub (Nov 18, 2021):
@YuxiaoLuo can you please share a stacktrace?