Python Forum
Google Earth Engine Authorization - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Google Earth Engine Authorization (/thread-41564.html)



Google Earth Engine Authorization - Asmaalashin - Feb-06-2024

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

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 work
Appreciat your kind support