[GH-ISSUE #201] ImportError? #154

Closed
opened 2026-02-27 22:08:20 +03:00 by kerem · 1 comment
Owner

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 YTMusic

Is the name not "YTMusic" anymore?

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 YTMusic` Is the name not "YTMusic" anymore?
kerem closed this issue 2026-02-27 22:08:20 +03:00
Author
Owner

@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.

<!-- gh-comment-id:851190193 --> @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.
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/ytmusicapi#154
No description provided.