Closed ashwinvis closed 6 months ago
I tried to move ~/.config/earthengine/credentials
file to redo the process but I end up with the same EEException again. Strange, since I can see a project with the API enabled:
@ashwinvis i will take a look into it. Could you test if this results in the same error:
import ee
ee.Authenticate()
ee.Initialize()
EEException: Not signed up for Earth Engine or project is not registered. Visit https://developers.google.com/earth-engine/guides/access
Same issue as before :tired_face:
Did you manage to enable the google earth engine (red arrow) and then you need to register it (green arrow) ?
Could you click on this link: code.earthengine.google.com/client-auth
This link should bring you to an authentication window, where you can select the project to use the API for.
Did you manage to enable the google earth engine (red arrow)
Not entirely sure, but I guess so.
and then you need to register it (green arrow) ?
Yes
Could you click on this link: code.earthengine.google.com/client-auth
This link should bring you to an authentication window, where you can select the project to use the API for.
I can see it, but if I click on GENERATE TOKEN, I get "Invalid request"
Hi @ashwinvis, i made a short instruction video on how to set up the project. You can find it here: https://youtu.be/h_8kX_oJulw
To test the API and your project, i used this authentication method:
import ee
ee.Authenticate(force=True) #force to create new credentials
ee.Initialize()
Can you reproduce these steps and let me know if this works, or where is does not work?
I see what went wrong. I was always trying from IPython console, and then authentication process is very different from the Notebook Authenticator. If I try that method, the ~/.config/earthengine/credentials
which gets saved, contains no client_id
and client_secret
fields.
Now that I tried it via JupyterLab a correct credentials file is saved.
I think you either try to do exception handling and / or note this known issue in the documentation. Recommend to use Jupyter instead.
@ashwinvis, This issue is addressed in #444 where
gcloud
dependency)metobs_toolkit.connect_to_gee()
) with kwargs passed to the ee.Authenticate()
.@ashwinvis let me know if you agree that #444 solves this issue, so i can merge.
LGTM! Go ahead :+1:
Possibly typos / mistakes in the docs
My comments in italics.
https://vergauwenthomas.github.io/MetObs_toolkit/topics/gee_authentication.html#setup-a-cloud-project-on-your-developer-account
Free credits?
Also are you implying that we need to rely on the $300 USD free credits that new users get, or is it that the API itself is free, or is it that the toolkit supplies the necessary credentials to use this API? I am confused.
https://vergauwenthomas.github.io/MetObs_toolkit/topics/gee_authentication.html#enable-api-s-on-your-project
There is no such ENABLE button to click. It says API ENABLED, so perhaps they automatically enabled it?
https://vergauwenthomas.github.io/MetObs_toolkit/topics/gee_authentication.html#test-your-gee-access
_This seems to imply that a dependency was missing from the installation instructions, but the only thing I had to do was to upgrade
pip install earthengine-api --upgrade
__And then upon upgrading, and following the authentication link
Right now I am stuck here. How do I fix this?