Hello everyone
I have created an account on google earth and created a new project and got the project id
then I am trying to
# Authenticate and initialize Google Earth Engine API using the code below
Appreciat your kind support
I have created an account on google earth and created a new project and got the project id
then I am trying to
# Authenticate and initialize Google Earth Engine API using the code below
import ee ee.Authenticate() ee.Initialize(project='project_id')I keep receiving the same error while I enabled the API in google earth and accepted google earth permission on my google account and it is the same gmail in everything
Error:usage: earthengine [-h] [--ee_config EE_CONFIG] [--service_account_file SERVICE_ACCOUNT_FILE]
[--project PROJECT_OVERRIDE]
{authenticate,acl,asset,cp,create,ls,alpha,du,mv,model,rm,set_project,task,unset_project,upload,upload_manifest,upload_table_manifest}
...
earthengine: error: unrecognized arguments: --reset
---------------------------------------------------------------------------
MessageError Traceback (most recent call last)
<ipython-input-20-cfa7071127f9> in <cell line: 4>()
2 # Authenticate and initialize Google Earth Engine API
3 get_ipython().system('earthengine authenticate --reset')
----> 4 ee.Authenticate()
5
6
4 frames
/usr/local/lib/python3.10/dist-packages/google/colab/_message.py in read_reply_from_input(message_id, timeout_sec)
101 ):
102 if 'error' in reply:
--> 103 raise MessageError(reply['error'])
104 return reply.get('data', None)
105
MessageError: Error: credential propagation was unsuccessful
Please help as it is the first step in my workAppreciat your kind support
Larz60+ write Feb-07-2024, 07:55 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
BBCode tags have been added this time. Please use BBCode tags on future posts.
When posting error tracebacks, please post complete and without modification as important debugging detail is enclosed within.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
BBCode tags have been added this time. Please use BBCode tags on future posts.
When posting error tracebacks, please post complete and without modification as important debugging detail is enclosed within.