Failing to authenticate to Google Earth Engine

646 views
Skip to first unread message

Anon

unread,
Jun 17, 2022, 2:40:53 AM6/17/22
to spyder
Hi there

I've been coding in Python to access Google Earth Engine.
Sypder has always been great for this.
However, in the last couple of weeks Google have updated their security protocols and I've had to update their EarthEngine api as a result.

If I now write

import ee
ee.Authenticate()

it opens the link to get the Google authentication code as before but it causes Spyder to crash. It gives me "Spyder has encountered an internal problem" pop up. Details below although I can't really understand them.
I've run the same thing in Jupyter Labs and it works fine. But since I hate JL and would rather use Spyder I'd like to find a way to make this work.
I'm using Spyder 5.0.3 and Python 3.9.
 
Is this just my setup or something related to the new authentication approach?

Thanks
Sarj


Traceback (most recent call last):
  File "C:\Users\GHComputer\.conda\envs\gee\lib\site-packages\qtconsole\base_frontend_mixin.py", line 138, in _dispatch
    handler(msg)
  File "C:\Users\GHComputer\.conda\envs\gee\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 267, in _handle_input_request
    return super(DebuggingWidget, self)._handle_input_request(msg)
  File "C:\Users\GHComputer\.conda\envs\gee\lib\site-packages\qtconsole\frontend_widget.py", line 512, in _handle_input_request
    self._readline(msg['content']['prompt'], callback=callback, password=msg['content']['password'])
  File "C:\Users\GHComputer\.conda\envs\gee\lib\site-packages\qtconsole\console_widget.py", line 2413, in _readline
    self._show_prompt(prompt, newline=False, separator=False)
TypeError: _show_prompt() got an unexpected keyword argument 'separator'

Daniel Althviz Moré

unread,
Jul 14, 2022, 1:19:16 PM7/14/22
to spyder
Hi Sarj,

To overcome that issue you will need to update to the latest Spyder available (5.3.2 at the moment) from the conda-forge channel. If you did not install Spyder from conda-forge in the env you are using I would suggest to create a new env with conda-forge packages (to prevent erros from mixing conda packages channels). A related issue where the shared traceback was reported too for more info: https://github.com/spyder-ide/spyder/issues/17616

Best regards,

Daniel

addisu simeneh

unread,
Sep 12, 2022, 1:46:35 PM9/12/22
to spyder
  Hi Dears.
how to evaluate the performance of K-means clustering algorithm? what are the metrics to evaluate it?
Reply all
Reply to author
Forward
0 new messages