Open bholtdwyer opened 1 month ago
@bholtdwyer Please use version 0.1.3.70 of the Earth Engine API. Currently, rgee encounters errors with the latest version of the API. To upgrade the Earth Engine API, use the following function: :point_down:
FInally, this issue is similar to #63
ee_install_upgrade(version = "0.1.370",earthengine_env = "C:/Users/holtd/anaconda3/envs/rgee/python.exe")
The following helped me -
Run this to authenticate
reticulate::py_run_string("import ee; ee.Authenticate()")
Run this to initialize... now GEE wants projects so you have to define a project - make sure you upgrade to latest GEE API (earthengine-api 0.1.416 ) - projects can be a number or ID (e.g. user/XXXX/projectname)
reticulate::py_run_string("import ee; ee.Initialize(project='309736351492')")
hope it helps
@fpirotti please use earthengine version 0.1.3.70
.
To update the version just run the following command, just keep in mind your earthengine_env
ee_install_upgrade(version = "0.1.370",earthengine_env = "C:/Users/holtd/anaconda3/envs/rgee/python.exe")
At submit an issue, please attached the following information of your
rgee
session:[ ] You have the Python API installed (from terminal):
[ ] You can find the credentials file on your system:
Returns FALSE. There is no ".config" folder in ~, which maps to C:/Users/holtd/OneDrive/Documents
P.S. I hate that Microsoft has sneakily mapped ~ to the OneDrive folder; I never asked for this.
There is such a credentials file in C:/Users/holtd/.config/earthengine
file.exists("C:/Users/holtd/.config/earthengine/credentials [1] TRUE
Attach your Python (reticulate) configuration:
Description
I'm just trying to get some NDVI data pulled from Google Earth Engine, but I can't even get the library to work. Every time I try to access data, it keeps complaining that the Earth Engine Client Library is not initialized (whatever that means). As you can see from the above, the library tries to cache my authorization token in one location (C;/Users/holtd/.config) but then apparently searches for it in a different one ("~/.config", which is C:/Users/holtd/OneDrive/Documents/.config, which doesn't exist). I've tried copying the config file over from where it's created to where the library seems to be looking for it, but that doesn't solve the problem.
What I Did