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

Linking CoastSat to GEE server #40

Closed
Philip125 opened this issue Oct 27, 2019 · 4 comments
Closed

Linking CoastSat to GEE server #40

Philip125 opened this issue Oct 27, 2019 · 4 comments
Labels
installation Issue with the installation of the coastsat package

Comments

@Philip125
Copy link

Hi Kilian, Shanghai from China here.

Thank you very much and the free tools provided by your team.

I am trying to run your script but after I copy the authorization code into the Anaconda terminal , it says "NameError:name "urllib2"is not defined"and"TimeoutError:[WinError 10060] The connection attempt failed because the connected party did not respond correctly after a certain period of time or the connected host did not respond.".

For programming, I am just a rookie just getting started.I don't know if the reason is because I am online in China...Can you help me ?

Sincere regards!!

@kvos
Copy link
Owner

kvos commented Oct 27, 2019

hi @Philip125 , I have never seen this error before but let's see if it can be fixed:

  • first thing to try would be to deactivate any firewalls and run earthengine authenticate again
  • the urllib2 error is strange, because the coastsat environment should have urllib3 instead. Maybe there is a package that is outdated so you can try to update the environment as follows:
  1. run conda clean --all on the anaconda prompt
  2. replace the content of your environment.yml file with this (no version numbers so it pulls that latest):
channels:
  - defaults
  - conda-forge
dependencies:
  - python=3.7
  - matplotlib
  - earthengine-api
  - gdal
  - geopandas
  - pytz
  - scikit-image
  - scikit-learn
  - shapely
  - spyder
  - notebook
  1. Install the coastsat environment again using this new environment.yml file, running conda env create -f environment.yml -n coastsat
  2. conda activate coastsat and run earthengine authenticate again

@Philip125
Copy link
Author

Hi @kvos, Thank you for your timely reply and kind help, I am very embarrassed to reply to you for so long. Because I was busy with the midterm exam... Yesterday I tried it again and it was a amazing success.(Laughing face)I think Maybe because I changed a new VPN?
Anyway, once again, express my gratitude for your help!

@kvos
Copy link
Owner

kvos commented Nov 11, 2019

ok good to hear @Philip125 , so did you have to re-install the environment or no need for that?

@kvos
Copy link
Owner

kvos commented Nov 22, 2019

closing this issue as it is solved

@kvos kvos closed this as completed Nov 22, 2019
@kvos kvos changed the title some mistakes happened when "Activate Google Earth Engine Python API" Linking CoastSat to GEE server Dec 18, 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

2 participants