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

TimeoutError: [WinError 10060] #129

Open
9wangsad opened this issue Jun 3, 2023 · 1 comment
Open

TimeoutError: [WinError 10060] #129

9wangsad opened this issue Jun 3, 2023 · 1 comment

Comments

@9wangsad
Copy link

9wangsad commented Jun 3, 2023

Hello everyone, I am from China. It emerges that when I try to install and use GEE plugin. I am so confused. Could anyone know it and help me? Thanks so much.

  • [ ]

Python Console

Use iface to access QGIS API interface or type help(iface) for more info

Security warning: typing commands from an untrusted source can harm your computer

import ee
Traceback (most recent call last):
File "C:\PROGRA1\QGIS331.1\apps\Python39\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "", line 1, in
File "C:\Users/w/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init_.py", line 42, in wrapping_ee_import
module.Initialize(http_transport=httplib2.Http())
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee_init_.py", line 131, in Initialize
data.initialize(
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee\data.py", line 199, in initialize
_install_cloud_api_resource()
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee\data.py", line 258, in _install_cloud_api_resource
_cloud_api_resource = _cloud_api_utils.build_cloud_resource(
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee_cloud_api_utils.py", line 178, in build_cloud_resource
resource = build(static_discovery=False)
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee_cloud_api_utils.py", line 162, in build
return discovery.build(
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\googleapiclient_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\googleapiclient\discovery.py", line 287, in build
content = _retrieve_discovery_doc(
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\googleapiclient\discovery.py", line 422, in _retrieve_discovery_doc
resp, content = req.execute(num_retries=num_retries)
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\googleapiclient_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\googleapiclient\http.py", line 923, in execute
resp, content = _retry_request(
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\googleapiclient\http.py", line 222, in _retry_request
raise exception
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\googleapiclient\http.py", line 191, in _retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\google_auth_httplib2.py", line 209, in request
self.credentials.before_request(self._request, method, uri, request_headers)
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\google\auth\credentials.py", line 134, in before_request
self.refresh(request)
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\google\oauth2\credentials.py", line 335, in refresh
) = reauth.refresh_grant(
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\google\oauth2\reauth.py", line 322, in refresh_grant
response_status_ok, response_data, retryable_error = _client._token_endpoint_request_no_throw(
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\google\oauth2_client.py", line 199, in _token_endpoint_request_no_throw
request_succeeded, response_data, retryable_error = _perform_request()
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\google\oauth2_client.py", line 175, in perform_request
response = request(
File "C:\Users\w\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\google_auth_httplib2.py", line 119, in call
response, data = self.http.request(
File "C:\PROGRA1\QGIS331.1\apps\Python39\lib\site-packages\httplib2_init
.py", line 1985, in request
(response, content) = self.request(
File "C:\PROGRA1\QGIS331.1\apps\Python39\lib\site-packages\httplib2_init
.py", line 1650, in request
(response, content) = self.conn_request(
File "C:\PROGRA1\QGIS331.1\apps\Python39\lib\site-packages\httplib2_init
.py", line 1557, in conn_request
conn.connect()
File "C:\PROGRA1\QGIS331.1\apps\Python39\lib\site-packages\httplib2_init
.py", line 1391, in connect
raise socket_err
File "C:\PROGRA1\QGIS331.1\apps\Python39\lib\site-packages\httplib2_init
.py", line 1324, in connect
sock.connect((self.host, self.port))
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

@XavierCLL
Copy link
Collaborator

Hi @9wangsad

The TimeoutError means that your computer can not reach the Google Auth API service to initiate the Google Earth Engine. Either you are behind a firewall (China firewall?) or a proxy, try using a VPN or setup the proxy

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants