DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials
@sqrrrl ya está trabajando en esto.
Desde el 3/2/2024.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 1.4k
- Forks
- 917
- Merge medio
- 3 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de googleworkspace/python-samples
-
ايقاف البحث الأمنQuizá libre de nuevo @sqrrrl la tomó hace 400 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#2434 · 1 asignado ·
-
Slow Uploads using Google Drive API with PythonQuizá libre de nuevo @sqrrrl la tomó hace 740 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#1852 · 1 comentario · 1 asignado ·
-
403 error from google after a few successful runs of my codeQuizá libre de nuevo @vinay-google la tomó hace 912 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#1424 · 1 asignado ·
-
How to see the progress of files which is getting uploadedQuizá libre de nuevo @vinay-google la tomó hace 928 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#1404 · 1 asignado ·
-
Phyton SamplesQuizá libre de nuevo @PierrickVoulet la tomó hace 975 días y no hay ningún pull request abierto. Abierto
googleworkspace/python-samples#1279 · 1 asignado ·
Todos los issues de googleworkspace/python-samples
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
canonical/paas-charm#407 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
FAIRmat-NFDI/pynxtools-spm#136 ·
Los mantenedores suelen responder en 1 día
-
enhancement tooling
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
`read_nexus` entry point points to a function that no longer existsPosiblemente ocupada @RubelMozumder la tomó hoy. Abiertoannotator bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
FAIRmat-NFDI/pynxtools#876 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: HTTP 499 (Client Closed Request) is classified as a non-retryable format_error, so a mid-flight abort fails the turn over instead of retryingPosiblemente ocupada @yipinghuang1991 la tomó hoy. Abiertocomp/agent P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NousResearch/hermes-agent#156837 ·
Los mantenedores suelen responder en 1 día