Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

earth engine not registered/initializing #33

Closed
SBFRF opened this issue Sep 22, 2019 · 9 comments
Closed

earth engine not registered/initializing #33

SBFRF opened this issue Sep 22, 2019 · 9 comments
Labels
installation Issue with the installation of the coastsat package

Comments

@SBFRF
Copy link
Contributor

SBFRF commented Sep 22, 2019

Hey Killian (or other moderators).
stoked on the tool, but having trouble running the example.py and I think it's related to the google earth engine initialization. Following Issue #28 i ran from the command line and re-activated the google earth-engine, and still ended up with an initialization error.

I think it's primarily a earth engine trouble, so i posted on stack overflow. Maybe you have some insight, or it might be helpful for others to see

Stack question here:
https://stackoverflow.com/questions/58053386/trouble-initalizing-google-earth-engine

@kvos
Copy link
Owner

kvos commented Sep 23, 2019

Hey Spicer, just read your stack question. I've never seen this error before... error 404 usually means that the webpage you're trying to reach has been removed or moved to another URL. Could be that the version of earthengine-api package that I have listed in the environment.yml file is obsolete. You can try to change in that file earthengine-api=0.1.173 to the latest version and re-install the environment (after running conda clean --all)

@kvos
Copy link
Owner

kvos commented Oct 1, 2019

@SBFRF did you find a way around the initialization error? There is another person here at the lab who installed coastsat recently and also has that issue, so it must be an earth-engine update as on my desktop it still works fine...

@SBFRF
Copy link
Contributor Author

SBFRF commented Oct 1, 2019

hey @kvos i actually haven't had the chance to try this again. :(

@SBFRF
Copy link
Contributor Author

SBFRF commented Oct 4, 2019

@kvos update, I tried with the new environment yaml you have on master (has earthengine-api=0.1.173) and still no luck. This time on a new machine to see if it was something funny on the machine i'm using. (one uses Centos7 and the other is PopOS! , a spin off of ubuntu).

@kvos
Copy link
Owner

kvos commented Oct 7, 2019

@SBFRF I've tried re-installing the coastsat environment on one of my computers (windows) and it worked fine. My only suggestion at this stage would be to replace the content of the environment.yml file with the following (where no version numbers are specified) and let anaconda pick the most appropriate versions for your OS:

channels:
  - defaults
  - conda-forge
dependencies:
  - python=3.7
  - matplotlib
  - earthengine-api
  - gdal
  - geopandas
  - pytz
  - scikit-image
  - scikit-learn
  - shapely
  - spyder
  - notebook

@ncohn
Copy link

ncohn commented Nov 13, 2019

I also ran into the same 404 error code that Spicer and a few others have seen. To fix this and get CoastSat working on my computer - I had to directly request access to Google Earth Engine (https://signup.earthengine.google.com/) which took about a day for Google to approve for me. This is separate from the "earthengine authenticate" command which provided me a token even before I "officially" had access to GEE. After Google manually OK'd my access, all seems to be working.

@kvos
Copy link
Owner

kvos commented Nov 13, 2019

happy days! thanks @ncohn for sharing this fix, quite a few users were stuck on this lately, I will update the documentation asap

@SBFRF
Copy link
Contributor Author

SBFRF commented Nov 14, 2019

so when i go there i get the below, but i think i did this like several months ago.....
image
.... i will wait again and post in a day or so any status changes

@SBFRF
Copy link
Contributor Author

SBFRF commented Nov 14, 2019

That seems to have fixed it. I guess i got (several months ago) and email (or didn't) but was granted access. When i tried to run i was successfully brought to a place where i was digitizing shorelines. I guess the take away was to be patient :). Now i'm getting other errors, but i'll try to debug with available info or open another issue. Thanks everyone!

@SBFRF SBFRF closed this as completed Nov 14, 2019
@kvos kvos added the installation Issue with the installation of the coastsat package label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Issue with the installation of the coastsat package
Projects
None yet
Development

No branches or pull requests

3 participants