Kennethekpetere / GEE_APP2SourceCode

This project, along with its accompanying Python notebook, includes a script that assists users in retrieving the JavaScript source code of any publicly published Google Earth Engine (GEE) web application.
1 stars 0 forks source link

Not working in google colab #1

Open sakthis888 opened 5 months ago

sakthis888 commented 5 months ago

I am running the same code in google colab python environment, but it returns error.
Error: Command 'geeadd app2script --url "https://sakthigis.projects.earthengine.app/view/covaiwater" --outfile "raw.js"' returned non-zero exit status 1. Kindly help in resolving the issue

erosfaus commented 2 months ago

hello , you find a solution?.

Regards.

Kennethekpetere commented 2 months ago

Hello you probably need to first enable GEE API to work with your notebook.

Try follow this steps: https://developers.google.com/earth-engine/guides/python_install-conda

And this: https://developers.google.com/earth-engine/guides/python_install

Ken

Get Outlook for iOShttps://aka.ms/o0ukef


From: erosfaus @.> Sent: Thursday, June 6, 2024 9:57:50 PM To: Kennethekpetere/GEE_APP2SourceCode @.> Cc: Subscribed @.***> Subject: Re: [Kennethekpetere/GEE_APP2SourceCode] Not working in google colab (Issue #1)

hello , you find a solution?.

Regards.

— Reply to this email directly, view it on GitHubhttps://github.com/Kennethekpetere/GEE_APP2SourceCode/issues/1#issuecomment-2153759610, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARHA7HC3O3CVTHVLIMU7TALZGEOSZAVCNFSM6AAAAABI522PJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJTG42TSNRRGA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

erosfaus commented 2 months ago

Hello Ken.

I have successfully enabled the GEE API with this line of code: import ee from google.colab import auth auth.authenticate_user()
ee.Authenticate() ee.Initialize(project='nameproyect')

But i have the same notification: Error: Command 'geeadd app2script --url "https://gena.users.earthengine.app/view/urban-lights" --outfile "/content/Local"' returned non-zero exit status 1.

If you have any other guidance, I would appreciate it. Regards.