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
qgis-earthengine-plugin cannot be use #35
Comments
Could be some firewall issue, can you try:
|
Earth engine plugin works in 3.8 will it work in 3.10? |
@GokulGeo - it should, it was tested with 3.8 and 3.10. |
It is working fine in 3.10. I am totally a beginner in python, I hope there will be sample exercises in the future to explore in qgis. |
Hi everyone, I have a similar problem, I thought it was a problem of SSL Certificates but they are already update and I cannot operate the plugin, the message is as follows: Couldn't load plugin 'ee_plugin' due to an error when calling its classFactory() method ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (ssl.c:1045) Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] Python Path: |
The first fix for this authentication type of error is to try authenticating using the command-line version of EE. Please follow https://developers.google.com/earth-engine/command_line and install EE Python API using Conda and then authenticate it via @giswqs nice to see examples for the plugin, but this is a bit off-topic here. I'd post this on the developers' forum. |
I am having similar issues getting the plugin to authenticate on my Windows 10 box. I have installed earthengine-api via OsGeo4W shell and Anaconda and successfully authenticated EE at the command prompt. However, when I paste the authentication code into the plugin window I always get the message below. I've tried it on ubuntu with similar results.. I have tried this on QGIS v3.12-1 and 3.10-4. Any guidance appreciated. Couldn't load plugin 'ee_plugin' due to an error when calling its classFactory() method ee.ee_exception.EEException: Server returned HTTP code: 404 During handling of the above exception, another exception occurred: Traceback (most recent call last): Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] Python Path: |
Installing earthengine-api under QGIS python in parallel to QGIS EE plugin is a road to troubles, since calling |
@gena Thanks for the feedback and help. Now I have a single installation of earthengine (anaconda) and see the ~.config\earthengine\credentials file. However, QGIS does not pick up on it. When QGIS launches the Authorization window opens instructing me to follow the instructions in the opened web page and paste the resulitng auth token here. |
That's weird,
One option I'd think of is to uninstall the plugin and make sure there is nothing from the earthengine-api left in the QGIS directory. This could be a new EE API issue as well. ... also the dialog text needs to be fixed 🙂 |
So, try to:
|
I unistalled the plugin. |
Hmm, I've just removed my auth file and tried to authenticate from QGIS on my machine as well ... everything worked. I've sent you an email, let's find out why this fails on your machine. This could be some firewall issue, but then authenticating using CLI would also fail. |
Hi, Gena, I can use the qgis-earthengine-plugin now. import ee Then the plugin can be applied. |
It seems that 404 sometimes means that account is not fully whitelisted, I'll extend FAQ to include this case. |
Hi, I just met the problem, and the qgis-earthengine-plugin cannot be use.
When the plugin had been installed, the problem appeared.
My OS and QGIS version are Windows 10, QGIS 3.10 'A Coruña'.
I thought that it may be caused by different directory definition (/ or ), but when I change to the Mac, the same problem still appear.
The detailed information is showed as bellow.
Couldn't load plugin 'ee_plugin' due to an error when calling its classFactory() method
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接 (The remote host forcibly close an existing connection)。
Traceback (most recent call last):
File "C:\Users\DongjieFu\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee\data.py", line 218, in get_persistent_credentials
tokens = json.load(open(oauth.get_credentials_path()))
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\DongjieFu/.config/earthengine/credentials'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/DongjieFu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\ee_auth.py", line 19, in init
ee.Initialize()
File "C:\Users\DongjieFu\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee_init_.py", line 112, in Initialize
credentials = data.get_persistent_credentials()
File "C:\Users\DongjieFu\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee\data.py", line 229, in get_persistent_credentials
'Please authorize access to your Earth Engine account by '
ee.ee_exception.EEException: Please authorize access to your Earth Engine account by running
earthengine authenticate
in your command line, and then retry.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:/Program Files/QGIS 3.10/apps/qgis/./python\qgis\utils.py", line 334, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/DongjieFu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init.py", line 25, in classFactory
from .ee_plugin import GoogleEarthEnginePlugin
File "d:/Program Files/QGIS 3.10/apps/qgis/./python\qgis\utils.py", line 737, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/DongjieFu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\ee_plugin.py", line 26, in
ee_plugin.ee_auth.init()
File "C:/Users/DongjieFu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\ee_auth.py", line 21, in init
authenticate()
File "C:/Users/DongjieFu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\ee_auth.py", line 45, in authenticate
'URL: ' + tiny_url(auth_url))
File "C:/Users/DongjieFu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\ee_auth.py", line 27, in tiny_url
tinyurl = urllib.request.urlopen(apiurl + url).read()
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\urllib\request.py", line 543, in _open
'_open', req)
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\urllib\request.py", line 1345, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\urllib\request.py", line 1320, in do_open
r = h.getresponse()
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\http\client.py", line 1321, in getresponse
response.begin()
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\http\client.py", line 296, in begin
version, status, reason = self._read_status()
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\http\client.py", line 257, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "d:\Program Files\QGIS 3.10\apps\Python37\lib\socket.py", line 589, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version: 3.10.0-A Coruña A Coruña, 6ffa89eb3e
Python Path:
d:/Program Files/QGIS 3.10/apps/qgis/./python
C:/Users/DongjieFu/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/DongjieFu/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
d:/Program Files/QGIS 3.10/apps/qgis/./python/plugins
D:\Program Files\QGIS 3.10\bin\python37.zip
d:\Program Files\QGIS 3.10\apps\Python37\DLLs
d:\Program Files\QGIS 3.10\apps\Python37\lib
D:\Program Files\QGIS 3.10\bin
d:\Program Files\QGIS 3.10\apps\Python37
d:\Program Files\QGIS 3.10\apps\Python37\lib\site-packages
d:\Program Files\QGIS 3.10\apps\Python37\lib\site-packages\win32
d:\Program Files\QGIS 3.10\apps\Python37\lib\site-packages\win32\lib
d:\Program Files\QGIS 3.10\apps\Python37\lib\site-packages\Pythonwin
C:/Users/DongjieFu/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\DongjieFu\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows
The text was updated successfully, but these errors were encountered: