mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #135] NameError: name 'headers_auth' is not defined #99
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#99
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 @bretterballz on GitHub (Dec 29, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/135
Trying to authenticate requests, but when doing
YTMusic.setup(filepath=headers_auth.json)I get
Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'headers_auth' is not definedI 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.
@harrytouche commented on GitHub (Dec 30, 2020):
It looks to me like you're trying to pass
headers_auth.jsonas a variable. Try wrapping it in some quotes to reference a string, and make sure the file is in your working directorySo
YTMusic.setup(filepath=headers_auth.json)Becomes
YTMusic.setup(filepath="headers_auth.json")@sigma67 commented on GitHub (Dec 30, 2020):
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/