-
-
Notifications
You must be signed in to change notification settings - Fork 113
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 Earth Engine Plugin does not work on Mac #39
Comments
Pretty sure thats the same error I got, I just double clicked the |
Hi Jerrod, thankyou for your response, where exactly can I find this command? |
For me it is in the python folders where the applications are. |
I have tried it and the problem still persists. |
Huh, that's odd because I just checked my error and it was the same. I don't know what else I did that could have affected this. I'm sorry I couldn't help much then. |
@sahirpatel, can you make sure that you run it on a proper Python that is used by QGIS, as mentioned in https://github.com/gee-community/qgis-earthengine-plugin/blob/master/README.md#faq? |
Ah I did that as well, that must have been the additional step for what was needed. |
I was in touch with @sahirpatel and we fixed this issue by running Open Terminal and enter following commands
Maybe add this to the FAQ for mac users? This will be easier for most QGIS mac users than installing via Conda |
There is a variety of types of python installations for the mac:
When you do |
Just tried and didn't work. pip3 installed well the earthengine-api and the earthengine authenticate command did worked well. I could associate it to my Google Account. But back in QGIS, enabling the Google Earth Engine plugin, it requested a new authentification again and didn't succeed with the same bug again.
If I setup in QGIS a custom path |
I seem to be getting similar authentication issues on mac. Get the following when using the earthengine authenticate command via terminal (after the sudo install) import tensorflow.compat.v1 as tf During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
I am having the exact same problem on my MBP/10.13.6. Funny, I installed Python 3.7 Install Certificates.command and Update Shell Profile.command, which is what QGIS 3.10 uses and re-installed EE plugin after a re-start. Same problem. When the same action was performed on my iMac/10.12, it worked perfectly! Please help! |
I am having the same authentication problem. Has there been a fix for this? |
@rsprabha did it work before? Did you follow steps in https://github.com/gee-community/qgis-earthengine-plugin/blob/master/README.md#faq? Does the command-line version of EE, installed in the main system Python instead of in QGIS, work? |
Also, check if you can access and login using Code Editor: http://code.earthengine.google.com. Sometimes accounts are not enabled, which will also result in errors in QGIS. |
GEE Code editor works... |
The code editor worked for me. Thanks Gena. |
Had the same error. The following worked for me.
This will lead you to the browser. Copy the token and paste in the terminal.
|
installing earth engine from the terminal first and then through plugin worked for me. Thanks asuhag |
I get an error.
|
M-Rick, Try this |
@M-Rick, in most of the cases these errors occur due to conflicts in local installations of python packages. Make sure you have the latest version of earthengine-api package installed. Or try uninstalling earthengine-api from your python environment so that QGIS EE plugin can use it's embedded version, 0.1.226. Did you install earthengine-api package before in your python environment? I'm not sure if QGIS shares python environment on MacOS. |
I'm having the same problem, I've tried everything, but it doesn't seem to work. I get this error when I type the 'import ee' on the QGIS python console: |
@nelsonag96 can you check if the following version works for you (install from a zip): #70 (comment)? |
@gena Yes, I could, thank you! However, when I try to authenticate 'earthengine authenticate' I get the following error: |
Are you trying to run |
This should work, fixed by #82 |
Following Error
Couldn't load plugin 'ee_plugin' due to an error when calling its classFactory() method
urllib.error.URLError:
Traceback (most recent call last):
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_darwin/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: '/Users/sahirpatel/.config/earthengine/credentials'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/ee_auth.py", line 19, in init
ee.Initialize()
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_darwin/ee/init.py", line 112, in Initialize
credentials = data.get_persistent_credentials()
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_darwin/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 "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/urllib/request.py", line 1317, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/http/client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/http/client.py", line 1275, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/http/client.py", line 1224, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/http/client.py", line 1016, in _send_output
self.send(msg)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/http/client.py", line 956, in send
self.connect()
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/http/client.py", line 1392, in connect
server_hostname=server_hostname)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/ssl.py", line 412, in wrap_socket
session=session
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/ssl.py", line 853, in _create
self.do_handshake()
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 334, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/init.py", line 25, in classFactory
from .ee_plugin import GoogleEarthEnginePlugin
File "/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 744, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/ee_plugin.py", line 26, in
ee_plugin.ee_auth.init()
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/ee_auth.py", line 21, in init
authenticate()
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/ee_auth.py", line 48, in authenticate
ee.oauth._obtain_and_write_token(token.strip())
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_darwin/ee/oauth.py", line 128, in _obtain_and_write_token
token = request_token(auth_code)
File "/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_darwin/ee/oauth.py", line 79, in request_token
parse.urlencode(request_args).encode()).read().decode()
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/urllib/request.py", line 1360, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/urllib/request.py", line 1319, in do_open
raise URLError(err)
urllib.error.URLError:
Python version: 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)]
QGIS version: 3.10.1-A Coruña A Coruña, 1e6b1a3eda
Python Path:
/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/WaterNetAnalyzer-master
/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python
/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python
/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/plugins
/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages
/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip
/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7
/Applications/QGIS3.10.app/Contents/Resources/python
/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/geos
/Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload
/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python
/Users/sahirpatel/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_darwin
The text was updated successfully, but these errors were encountered: