We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rgee
earthengine -h
library(rgee) ee_path <- path.expand("~/.config/earthengine/credentials") file.exists(ee_path)
library(rgee) # Initialize the Earth Engine module. ee_Initialize() ── rgee 1.1.5 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── earthengine-api 0.1.367 ── ✔ user: not_defined ✔ Initializing Google Earth Engine:Error in py_call_impl(callable, call_args$unnamed, call_args$named) : google.auth.exceptions.RefreshError: ('invalid_grant: Bad Request', {'error': 'invalid_grant', 'error_description': 'Bad Request'}) Run `reticulate::py_last_error()` for details.
Attach your Python (reticulate) configuration:
library(reticulate) py_config() python: /gpfs1/schlecker/home/barrasso/.local/share/r-miniconda/envs/r-reticulate/bin/python libpython: /gpfs1/schlecker/home/barrasso/.local/share/r-miniconda/envs/r-reticulate/lib/libpython3.9.so pythonhome: /gpfs1/schlecker/home/barrasso/.local/share/r-miniconda/envs/r-reticulate:/gpfs1/schlecker/home/barrasso/.local/share/r-miniconda/envs/r-reticulate version: 3.9.18 | packaged by conda-forge | (main, Aug 30 2023, 03:49:32) [GCC 12.3.0] numpy: [NOT FOUND] ee: /gpfs1/schlecker/home/barrasso/.local/share/r-miniconda/envs/r-reticulate/lib/python3.9/site-packages/ee
ee_Authenticate() works but ee_Initialize() doesn't, and I don't know what's wrong
library(rgee) ee_Initialize() ── rgee 1.1.5 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── earthengine-api 0.1.367 ── ✔ user: not_defined ✔ Initializing Google Earth Engine:Error in py_call_impl(callable, call_args$unnamed, call_args$named) : google.auth.exceptions.RefreshError: ('invalid_grant: Bad Request', {'error': 'invalid_grant', 'error_description': 'Bad Request'}) Run `reticulate::py_last_error()` for details.
The text was updated successfully, but these errors were encountered:
After a few years without using rgee, I tried installing it to run some codes, and got the same error on my machine. See picture below.
Sorry, something went wrong.
Hi seems like the credentials expired. you can easily get new ones with ee_Authenticate. Let me know if that works!
ee_Authenticate
authenticate gives me this error
Hi @ricds can u upgrade your rgee version using GH. New rgee version use 'notebook' rather than 'gcloud' to auth (similar to geemap).
remotes::install_github("r-spatial/rgee")
No branches or pull requests
At submit an issue, please attached the following information of your
rgee
session:Attach your Python (reticulate) configuration:
Description
ee_Authenticate() works but ee_Initialize() doesn't, and I don't know what's wrong
What I Did
The text was updated successfully, but these errors were encountered: