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

GEE authenticate error #89

Open
vnfrms opened this issue Mar 2, 2023 · 8 comments
Open

GEE authenticate error #89

vnfrms opened this issue Mar 2, 2023 · 8 comments

Comments

@vnfrms
Copy link

vnfrms commented Mar 2, 2023

There is an error when I try to use Deforestation Alert Analysis function, it seems problem with the GEE's account authenticate.

Please check it and authenticate it.
image

@12rambau
Copy link
Collaborator

12rambau commented Mar 2, 2023

I think your SEPAL account is not wired to your GEE account, could you follow the steps from this documentation page and let me know: https://docs.sepal.io/en/latest/setup/gee.html

@vnfrms
Copy link
Author

vnfrms commented Mar 2, 2023

I did (several times) before reporting this error here.

@vnfrms
Copy link
Author

vnfrms commented Mar 2, 2023

In addition, does it mean that the users who does not have a GEE account will not able to use this Deforestation Alert Analysis?

@12rambau
Copy link
Collaborator

12rambau commented Mar 2, 2023

I did (several times) before reporting this error here.

Perfect let me check from my side then

In addition, does it mean that the users who does not have a GEE account will not able to use this Deforestation Alert Analysis?

linking a GEE account to use the deforestation alert analysis is compulsory as we provide access to GEE data within the tool (namely planet Imagery).

@12rambau
Copy link
Collaborator

12rambau commented Mar 2, 2023

@vnfrms, it works just fine from my side so my guess is that you have a conflicting verion of earthengine installed on your SEPAL Python environment.
Could you from a terminal run the following command:

pip show earthengine-api

@vnfrms
Copy link
Author

vnfrms commented Mar 2, 2023

I will provide you some idea soon.

@vnfrms
Copy link
Author

vnfrms commented Mar 3, 2023

After several trials and errors, here are my provisions:

  • If I activate more than one Google accounts (Gmail) in my laptop/smartphone, then I cannot use the alert module. So, I have to sign out all my Gmail then sign in back;
  • After signed in successfully and I can authenticate SEPAL to read my account, then SEPAL will go back to homepage; I need to select the "Deforestation Alert Analysis" module again;
  • After select this module again, the same error (earthengine authenticate) will happen, then I need to authenticate again.
  • After I authenticate, SEPAL will go back to the homepage, and I need to select the Deforestation Alert Analysis again.
  • Then the same error happen.
  • Again, again, again.... with the same cycle above.

I suggest to check in detail and improve it...
I give up using this for a while from now.

@12rambau
Copy link
Collaborator

12rambau commented Mar 3, 2023

If I activate more than one Google accounts (Gmail) in my laptop/smartphone, then I cannot use the alert module. So, I have to sign out all my Gmail then sign in back;

I don't really understand what ou mean by "activate more than one Google accounts". If you mean that you have multiple account saved in your browser then I do as well and that will not be a problem (I have 10 accounts, 5 of them whitelisted for GEE use) as long as the one linked to SEPAL is whitelisted for GEE and has a homefolder initialized. If you talk about the "earthengine authenticate" command then be aware that each time you connect a new account you erase the credential of the one installed prior.

After signed in successfully and I can authenticate SEPAL to read my account, then SEPAL will go back to homepage; I need to select the "Deforestation Alert Analysis" module again;

It is due to an error in your credential. As mentioned in my previous message, could you run in the SEPAL terminal (https://docs.sepal.io/en/latest/setup/presentation.html#terminal-tab) pip show earthengine-api ?

I suggest to check in detail and improve it...

I'm sorry to hear your difficulties, as you're the only one reporting it, it must be related to your environment in the platform. to check something else and make sure that the connected account is working could you try to download to GEE a small mosaic (with all default parameters and a small AOI): https://docs.sepal.io/en/latest/cookbook/optical_mosaic.html
If it doesn't work it means that the account you connected is not whitelisted to GEE if it does it will confirm the problem with your environment and I'll need the result of the command I requested.

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

2 participants