# Earth engine Authenticate() error

**URL:** <https://discourse.julialang.org/t/earth-engine-authenticate-error/59091>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 12, 2021, 10:46am UTC](https://discourse.julialang.org/t/earth-engine-authenticate-error/59091 "2021-04-12T10:46:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveen1](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@praveen1](https://discourse.julialang.org/u/praveen1)\
**Post date:** [April 12, 2021, 10:46am UTC](https://discourse.julialang.org/t/earth-engine-authenticate-error/59091/1 "2021-04-12T10:46:11Z")

</div>

using PyCall;  
ee = pyimport(“ee”);  
ee.Authenticate();

To authorize access needed by Earth Engine, open the following URL in a web browser and follow the instructions. If the web browser does not start automatically, please manually browse the URL below.

```
https://accounts.google.com/o/oauth2/auth?client_id=517222506229-vsmmajv00ul0bs7p89v5m89qs8eb9359.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fearthengine+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdevstorage.full_control&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&code_challenge=v1oUbFte7bjr61YgAKFwaPbp9QUeYjrIoy7RwqOeI&code_challenge_method=S256

```

The authorization workflow will generate a code, which you should paste in the box below.  
Enter verification code:  
PyError ($(Expr(:escape, :(ccall(#= C:\Users\PRAVEEN.julia\packages\PyCall\BD546\src\pyfncall.jl:43 =# @pysym(:PyObject\_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) \<class ‘EOFError’\>  
EOFError(‘EOF when reading a line’)  
File “C:\Users\PRAVEEN.julia\conda\3\lib\site-packages\ee\__init_\_.py”, line 89, in Authenticate  
oauth.authenticate(authorization\_code, quiet, code\_verifier)  
File “C:\Users\PRAVEEN.julia\conda\3\lib\site-packages\ee\oauth.py”, line 235, in authenticate  
\_obtain\_and\_write\_token(None, code\_verifier) # Will prompt for auth\_code.  
File “C:\Users\PRAVEEN.julia\conda\3\lib\site-packages\ee\oauth.py”, line 139, in \_obtain\_and\_write\_token  
auth\_code = input('Enter verification code: ')

Stacktrace:  
[1] pyerr\_check  
@ ~.julia\packages\PyCall\BD546\src\exception.jl:62 [inlined]  
[2] pyerr\_check  
@ ~.julia\packages\PyCall\BD546\src\exception.jl:66 [inlined]  
[3] \_handle\_error(msg::String)  
@ PyCall ~.julia\packages\PyCall\BD546\src\exception.jl:83
