mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #201] ImportError? #154
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#154
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 @JPili on GitHub (May 30, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/201
I get the following error whenever I run my code:
ImportError: cannot import name 'YTMusic' from partially initialized module 'ytmusicapi' (most likely due to a circular import)It happens right on the first line:
from ytmusicapi import YTMusicIs the name not "YTMusic" anymore?
@JPili commented on GitHub (May 31, 2021):
The problem was both the file and folder for my code was also named "ytmusicapi"... Renamed them and it works now.