r-spatial / rgee

Google Earth Engine for R
https://r-spatial.github.io/rgee/
Other
677 stars 146 forks source link

Install rgee on Windows 11 #296

Open chiacole91 opened 2 years ago

chiacole91 commented 2 years ago

Hi everyone, I had no issues installing rgee on Windows 10, but I cannot do the same on Windows 11. Here what I have been trying:

library(rgee) library(reticulate) earthengine_python <- Sys.getenv("EARTHENGINE_PYTHON") Sys.setenv(RETICULATE_PYTHON = earthengine_python) reticulate::py_config()

ee_Initialize()

this return the error:

Error in ee_connect_to_py(path = ee_current_version, n = 5) : The current Python PATH: C:/Users/chiac/AppData/Local/r-miniconda/envs/r-reticulate/python.exe does not have the Python package "earthengine-api" installed. Are you restarted/terminated. your R session after install miniconda or run ee_install()? If no do it, please try again:

ee_install(): To create and set a Python environment with all rgee dependencies. ee_install_set_pyenv(): To set a specific Python environment.

However, if I try to run ee_install() I get the error

  1. Removing the previous Python Environment (rgee), if it exists ...

    • "C:/Users/chiac/AppData/Local/r-miniconda/condabin/conda.bat" "remove" "--yes" "--name" "rgee" "--all"
  2. Creating a Python Environment (rgee)

    • "C:/Users/chiac/AppData/Local/r-miniconda/condabin/conda.bat" "create" "--yes" "--name" "rgee" "python=3.8" "--quiet" "-c" "conda-forge" Collecting package metadata (current_repodata.json): ...working... failed

CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to download and install packages.

Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

Error in value[3L] : An error occur when ee_install was creating the Python Environment. Run ee_clean_pyenv() and restart the R session, before trying again.

Can someone please help? This would be really appreciated!

csaybar commented 2 years ago

Hi @chiacole91 thank you for reporting this!

It seems that it's an open issue related to conda https://github.com/conda/conda/issues/11795.

JosefClifford commented 1 year ago

Hello @chiacole91 - I am having the same problem, did you manage to fix it?

ryali93 commented 1 year ago

Hi all, that's right, it is actually a problem with the DLL files, this worked for me https://github.com/conda/conda/issues/11795#issuecomment-1311352402