Closed AcademicusChamaeleon closed 2 years ago
I got exactly the same problem. Wondering if it's not related to code unable to differentiate between Python 3.1 and 3.10 recently released ?
Hi can restart your R session and then run:
rgee_environment_dir = "C:\\Users\\yunti\\AppData\\Local\\r-miniconda\\envs\\rgee\\"
Sys.setenv(RETICULATE_PYTHON = rgee_environment_dir)
reticulate::py_run_string("import ssl")
and show us the result?
Thanks to @ryali93, we found the bug. It is a really specific issue, it only happens if you are using:
The bug in reticulate occur exactly here: https://github.com/rstudio/reticulate/blob/dd6d6e8139dcfc4ce19e6b7150406a6f4e1af747/inst/python/rpytools/loader.py#L39
We will try to investigate deeper the error. But for now, a workaround would be to use python 3.9 instead of 3.10. I highly recommend you follow the @ricds tutorial.
You will find the code to install here: https://github.com/ricds/DL_RS_GEE/blob/main/rgee_install_packages.R and a video tutorial here: https://www.youtube.com/watch?v=1-k6wNL2hlo
I don't know if this has anything to do with anything, but this line in ee_check_python() returns 3.1 instead of 3.10: py_version <- as.numeric(py_discover_config()[["version"]])
P.S. thanks for the handy package!
Hi @patchcervan Yes!!, unfortunately, this happens in reticulate and not rgee :( Please try to install manually Python 3.9 rather than 3.10. rgee should work again then.
I see... python 3.9 does work for now, thanks!
Hi, the problem has been solved!. Please run as follow to fix!
remotes::install_github("r-spatial/rgee")
library(rgee)
ee_install()
Description
It had errors when I ran ee_Initialize() and ee_check()
What I Did