rgee icon indicating copy to clipboard operation
rgee copied to clipboard

Install rgee on Windows 11

Open chiacsen opened this issue 3 years ago • 3 comments

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"
  1. 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!

chiacsen avatar Oct 06 '22 13:10 chiacsen

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.

csaybar avatar Oct 08 '22 11:10 csaybar

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

JosefClifford avatar Nov 29 '22 09:11 JosefClifford

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

ryali93 avatar Nov 30 '22 10:11 ryali93