sepal-contrib / alert_module

SEPAL module to retreive any type of alert on a selected AOI
MIT License
0 stars 4 forks source link

GEE authenticate error #89

Open vnfrms opened 1 year ago

vnfrms commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

vnfrms commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

I will provide you some idea soon.

vnfrms commented 1 year ago

After several trials and errors, here are my provisions:

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

12rambau commented 1 year ago

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.