Python Forum
Google Earth Engine Authorization
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google Earth Engine Authorization
#1
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
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Search Engine nman52 1 55,479 Dec-16-2020, 11:46 AM
Last Post: Larz60+
  how to import files in Google Collab wihout downloading them to PC and to Google Disk sveto4ka 9 3,951 Jun-03-2020, 12:40 PM
Last Post: sveto4ka
  Making an application with a 3d engine in it moo5e 1 2,125 May-27-2019, 03:17 PM
Last Post: heiner55
  Regarding AWS API authorization naressh1994 0 2,073 Jan-23-2019, 06:13 AM
Last Post: naressh1994
  Moon earth sun orbit newfoundme 13 10,612 Oct-01-2017, 10:14 AM
Last Post: Lamarre
  Python Trading Engine icabero0225 3 5,188 May-27-2017, 09:53 PM
Last Post: bigmit37

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020