Closed bretterballz closed 3 years ago
It looks to me like you're trying to pass headers_auth.json
as a variable. Try wrapping it in some quotes to reference a string, and make sure the file is in your working directory
So
YTMusic.setup(filepath=headers_auth.json)
Becomes
YTMusic.setup(filepath="headers_auth.json")
Yes, you need to wrap in quotes since the filepath is provided as a string.
Please use Gitter for further questions if possible: https://gitter.im/sigma67/ytmusicapi/
Trying to authenticate requests, but when doing
YTMusic.setup(filepath=headers_auth.json)
I getTraceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'headers_auth' is not defined
I apologize, I'm a newb and just trying to get https://github.com/KoljaWindeler/ytube_music_player to work. I'm using Python 3.9 (64bit).Any help to point me in the right direction would be appreciated!
Thanks.