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

Error ee_Initialize() #369

Open
acharyaamul opened this issue Aug 10, 2024 · 3 comments
Open

Error ee_Initialize() #369

acharyaamul opened this issue Aug 10, 2024 · 3 comments

Comments

@acharyaamul
Copy link

  • rgee version:1.1.7
  • R version: 4.4.0
  • Operating System: Window10

I tried to ee_Initialize() rgee. I got the error message:
── rgee 1.1.7 ───────────────────────────────────────────────────── earthengine-api 0.1.415 ──
✔ user: not_defined
✔ Initializing Google Earth Engine: DONE!
Error in value[3L] :
It looks like your EE credential has expired. Try running ee_Authenticate() again or clean your credentials ee_clean_user_credentials().
I tried ee_clean_user_credentials() and again ee_Authenticate() .
I still got the same error message again and again.

@K-onepa
Copy link

K-onepa commented Oct 29, 2024

I have the same problem, have you solved it? I really need a solution. Thanks!

@acharyaamul
Copy link
Author

acharyaamul commented Oct 29, 2024

I tried following code.
install.packages("rgee")
install.packages("reticulate")
library(rgee)
reticulate::py_available()
reticulate::py_discover_config()
rgee::ee_install_set_pyenv(
py_path = "C:/Users/Lenovo/AppData/Local/r-miniconda/envs/rgee/python.exe",
py_env= "rgee"
) # use your python path

rgee::ee_check()
rgee::ee_install_upgrade()

rgee::ee_Initialize(
user= "..............@gmail" # use your Gmail

)

copy the token code after authentication from Gmail (the internet browser automatically opens) and paste it.

I followed the video tutorial:https://www.youtube.com/watch?v=olNYYynSJfI&t=282s

@GuidRaphael
Copy link

Hello,

I am experiencing a persistent authentication issue with rgee and the Google Earth Engine Python API. Below are the details of the error and the steps I have already taken to try to resolve the issue:

Error Details
When running the command rgee::ee_Initialize(drive = TRUE), I receive the following messages:

lua
Copier le code
── rgee 1.1.7 ────────────────────────────────────────────────────── earthengine-api 1.3.0 ──
✔ user: not_defined
✔ Google Drive credentials: FOUND
✔ Initializing Google Earth Engine: DONE!
Error in value[3L] :
It looks like your EE credential has expired. Try running ee_Authenticate() again or clean your credentials ee_clean_user_credentials().
Additionally, I see warning messages suggesting that I should update the API to version v0.1.317 or greater, even though earthengine-api 1.3.0 is installed and should be compatible.

Steps Already Taken
Cleaned rgee and Earth Engine credentials using rgee::ee_clean_user_credentials() and deleted the .config/earthengine folder.
Completely reinstalled rgee and created a new Python environment with rgee::ee_install().
Reinstalled the recommended earthengine-api version 1.1.4 to ensure compatibility with rgee.
Re-authenticated using rgee::ee_Authenticate() and confirmed OAuth permissions in my Google account.
Despite these steps, the error persists, and I suspect the issue might be related to my Earth Engine account or an internal compatibility issue.

Could you please check if there are any restrictions on my account or if there’s an access issue with the API for rgee? Any assistance you could provide to help resolve this would be greatly appreciated.

Thank you very much for your help.

Best regards,
Raphael Meldeke Guidkaya

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

3 participants