Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials #1278

Open
Assignees
@mannaaaz

Description

Summary

I went through all these steps here: [https://developers.google.com/drive/api/quickstart/python#authorize_credentials_for_a_desktop_application] and downloaded, renamed the credentials.json. The reason why I am doing this because I want to load some of my google drive folders into LangChain to build a chatbot. Anyways, when i write this code:


loader = GoogleDriveLoader(
 folder_id="1JPOaEJdy-LiiqBAZpRQ4FH0ssSFuy7i3",
 #token_path="/Users/mannaz/Desktop/PsychedelicTest/psychedelicProject/google_token.json",
 # Optional: configure whether to recursively fetch files from subfolders. Defaults to False.
 recursive=False,
)
#%%
docs = loader.load()
` ` ` 
I get an error: 
DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
What could be the reasons? I followed the steps exactly. And before that I was getting the error: quickstart.py fails on error: No such file or directory: 'credentials.json' and now this. 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /