[GH-ISSUE #287] create_playlist() missing 1 required positional argument: 'self' #223

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

Originally created by @ykuwai on GitHub (Aug 4, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/287

Hi, I use this API for making playlists automatically.
using Google Colaboratory.

I have a problem with creating a playlist.

After succeeded in YTMusic.setup(filepath="headers_auth.json"),
I tried these codes;

YTMusic.create_playlist(title='API TEST 1', description = "description for API TEST 1")

It has Error;

TypeError                                 Traceback (most recent call last)
[<ipython-input-21-48e5eff91149>](https://localhost:8080/#) in <module>()
----> 1 YTMusic.create_playlist(title='API TEST 1', description = "description for API TEST 1")

TypeError: create_playlist() missing 1 required positional argument: 'self'

What should I assign the value self ?

Please tell me how to avoid this problem.

Thank you

Originally created by @ykuwai on GitHub (Aug 4, 2022). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/287 Hi, I use this API for making playlists automatically. using Google Colaboratory. I have a problem with creating a playlist. After succeeded in `YTMusic.setup(filepath="headers_auth.json")`, I tried these codes; ``` YTMusic.create_playlist(title='API TEST 1', description = "description for API TEST 1") ``` It has Error; ``` TypeError Traceback (most recent call last) [<ipython-input-21-48e5eff91149>](https://localhost:8080/#) in <module>() ----> 1 YTMusic.create_playlist(title='API TEST 1', description = "description for API TEST 1") TypeError: create_playlist() missing 1 required positional argument: 'self' ``` What should I assign the value `self` ? Please tell me how to avoid this problem. Thank you
kerem closed this issue 2026-02-27 22:08:41 +03:00
Author
Owner

@sigma67 commented on GitHub (Aug 4, 2022):

It seems you are new to Python. Please follow the instructions step by step.

https://ytmusicapi.readthedocs.io/en/latest/usage.html

<!-- gh-comment-id:1205134351 --> @sigma67 commented on GitHub (Aug 4, 2022): It seems you are new to Python. Please follow the instructions step by step. https://ytmusicapi.readthedocs.io/en/latest/usage.html
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#223
No description provided.