Closed MelanieDickie closed 2 years ago
Hi @MelanieDickie It seems you are using an old version of the R googledrive package. Can you try upgrading the package? :eyes:
Thanks @csaybar. I updated all my packages, here is google drive:
packageVersion("googledrive") [1] ‘2.0.0’
I'm still getting errors. I did some crazy combination of suggested fixes in various posted Issues over the course of two days, and somehow it worked - but only temporarily. It's again not working. And I can not reproduce the combination of steps that got me there. Something along the lines of redownloading rgee from git (not CRAN via remotes::install_github("r-spatial/rgee"), updating my Python API, installing gcloud, changing settings in my google account, and using the work-around from #267 (ee$Authenticate()ee$Initialize()).
What I've tried this morning: -update all packages -library(rgee) fails, despite having previously installed it. So I re-try: remotes::install_github("r-spatial/rgee") library(rgee)
library(rgee) Error: package or namespace load failed for ‘rgee’: .onLoad failed in loadNamespace() for 'rgee', details: call: py_module_import(module, convert = convert) error: ModuleNotFoundError: No module named 'ee'
Are you using Rstudio? Can you see if this issue also happens in R-base?
Please share with us the next information.
library(rgee)
reticulate::import("ee")$`__version__`
sessionInfo()
I am, but the problem persists in base R:
library(rgee) reticulate::import("ee")$
__version__
Error in py_module_import(module, convert = convert) : ModuleNotFoundError: No module named 'ee' In addition: Warning message: In readLines(rf) : incomplete final line found on 'C:\Users\Patricia\AppData\Local\Temp\Rtmpm6Z0Qa\file1f242a0c967'sessionInfo() R version 3.6.2 (2019-12-12) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19043)
Matrix products: default
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252
[3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
[5] LC_TIME=English_Canada.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] rgee_1.1.4
loaded via a namespace (and not attached):
[1] Rcpp_1.0.8.3 here_1.0.1 lattice_0.20-41 png_0.1-7
[5] ps_1.6.0 rprojroot_2.0.3 digest_0.6.27 crayon_1.5.1
[9] rappdirs_0.3.3 grid_3.6.2 R6_2.5.1 jsonlite_1.7.2
[13] magrittr_2.0.3 rlang_1.0.3 cli_3.3.0 leaflet_2.1.1
[17] Matrix_1.2-18 reticulate_1.25 htmlwidgets_1.5.4 crosstalk_1.2.0
[21] fastmap_1.1.0 compiler_3.6.2 processx_3.5.2 htmltools_0.5.2
Are you available for a quite short meeting (if yes, please write me an email at csaybar@gmail.com)?. I want to take a deep look at why this sometimes happens in some windows systems :pray:
See #271
At submit an issue, please attached the following information of your
rgee
session:[Yes ] You have the Python API installed (from terminal):
[ No] You can find the credentials file on your system:
[No ] You can run a simple EE command from R:
Attach your Python (reticulate) configuration:
Description
I'm trying to save an ee.image to a raster via drive. I've done this successfully in the past with the code below. However, I am now running into an authentication issue (see https://github.com/r-spatial/rgee/issues/271) which I've been able to bypass using instructions from https://github.com/r-spatial/rgee/issues/267: library(rgee) ee$Authenticate() ee$Initialize()
(though I don't think the workaround is reproducible, and if I were to use ee_Authenticate() I still get an error)
I'm not sure if this issue is tied to my current issue. I am able to bring in ImageCollections and process them, but when I try to move them locally I receive an error (see below). Note that I get the same error if I attempt other ways to move to Local. I provide one example traceback().
What I Did