Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working #5

Open
mdsmendes94 opened this issue Aug 12, 2022 · 1 comment
Open

Not working #5

mdsmendes94 opened this issue Aug 12, 2022 · 1 comment

Comments

@mdsmendes94
Copy link

PS C:\Users\Matheus\Documents\YoutubeToSpotify-master> python main.py
Traceback (most recent call last):
  File "C:\Users\Matheus\Documents\YoutubeToSpotify-master\main.py", line 29, in <module>
    main()
  File "C:\Users\Matheus\Documents\YoutubeToSpotify-master\main.py", line 6, in main
    yt = Youtube()
  File "C:\Users\Matheus\Documents\YoutubeToSpotify-master\youtube.py", line 35, in __init__
    self.youtube = build(
  File "C:\Users\Matheus\AppData\Local\Programs\Python\Python310\lib\site-packages\googleapiclient\_helpers.py", line 134, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "C:\Users\Matheus\AppData\Local\Programs\Python\Python310\lib\site-packages\googleapiclient\discovery.py", line 278, in build
    service = build_from_document(
  File "C:\Users\Matheus\AppData\Local\Programs\Python\Python310\lib\site-packages\googleapiclient\_helpers.py", line 134, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "C:\Users\Matheus\AppData\Local\Programs\Python\Python310\lib\site-packages\googleapiclient\discovery.py", line 527, in build_from_document
    credentials = _auth.default_credentials(
  File "C:\Users\Matheus\AppData\Local\Programs\Python\Python310\lib\site-packages\googleapiclient\_auth.py", line 54, in default_credentials
    credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id)
  File "C:\Users\Matheus\AppData\Local\Programs\Python\Python310\lib\site-packages\google\auth\_default.py", line 488, in default
    raise exceptions.DefaultCredentialsError(_HELP_MESSAGE)
google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started
PS C:\Users\Matheus\Documents\YoutubeToSpotify-master>

@AnubisXHyperX
Copy link

You need to follow instructions on the GCP console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants