[GH-ISSUE #511] AttributeError: module 'spotipy' has no attribute 'spotify' #306

Closed
opened 2026-02-27 23:21:54 +03:00 by kerem · 5 comments
Owner

Originally created by @Soheab on GitHub (Jun 12, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/511

i keep getting this error

Traceback (most recent call last):
  File "C:\Users\yes\OneDrive\Documents\bots\Sparkly\Sparkly3.0\cogs\owner.py", line 608, in eval
    ret = await func()
  File "<string>", line 3, in func
AttributeError: module 'spotipy' has no attribute 'spotify'

with this code:

import spotipy
sp = spotipy.Spotify(auth="Client Secret here, yes")
return sp
Originally created by @Soheab on GitHub (Jun 12, 2020). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/511 i keep getting this error ```py Traceback (most recent call last): File "C:\Users\yes\OneDrive\Documents\bots\Sparkly\Sparkly3.0\cogs\owner.py", line 608, in eval ret = await func() File "<string>", line 3, in func AttributeError: module 'spotipy' has no attribute 'spotify' ``` with this code: ```py import spotipy sp = spotipy.Spotify(auth="Client Secret here, yes") return sp ```
kerem closed this issue 2026-02-27 23:21:54 +03:00
Author
Owner

@stephanebruckert commented on GitHub (Jun 12, 2020):

Check if you already have a file called spotipy.py in your folder/project

<!-- gh-comment-id:643364476 --> @stephanebruckert commented on GitHub (Jun 12, 2020): Check if you already have a file called spotipy.py in your folder/project
Author
Owner

@Soheab commented on GitHub (Jun 12, 2020):

Check if you already have a file called spotipy.py in your folder/project

i don't. even dir() shows it has it soo idk
image

<!-- gh-comment-id:643372677 --> @Soheab commented on GitHub (Jun 12, 2020): > Check if you already have a file called spotipy.py in your folder/project i don't. even dir() shows it has it soo idk ![image](https://user-images.githubusercontent.com/33902984/84525004-32e67200-acdb-11ea-9138-71648fec9eb2.png)
Author
Owner

@Soheab commented on GitHub (Jun 12, 2020):

ahh i see why, it's a issue with my bot, sorry.

<!-- gh-comment-id:643377304 --> @Soheab commented on GitHub (Jun 12, 2020): ahh i see why, it's a issue with my bot, sorry.
Author
Owner

@stephanebruckert commented on GitHub (Jun 12, 2020):

@Soheab great but what was it? might be useful for someone else

<!-- gh-comment-id:643389316 --> @stephanebruckert commented on GitHub (Jun 12, 2020): @Soheab great but what was it? might be useful for someone else
Author
Owner

@Soheab commented on GitHub (Jun 12, 2020):

@Soheab great but what was it? might be useful for someone else

oh it's 100% my mistake, i overwrote something called "get_context" so it lowers everything, that's what i did in the eval command.

<!-- gh-comment-id:643483850 --> @Soheab commented on GitHub (Jun 12, 2020): > @Soheab great but what was it? might be useful for someone else oh it's 100% my mistake, i overwrote something called "get_context" so it lowers everything, that's what i did in the eval command.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#306
No description provided.