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.