Install rgee on Windows 11
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 777
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
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
- Removing the previous Python Environment (rgee), if it exists ...
- "C:/Users/chiac/AppData/Local/r-miniconda/condabin/conda.bat" "remove" "--yes" "--name" "rgee" "--all"
- 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!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Windows 11 setup with the commands in the issue, especially ee_install(), ee_clean_pyenv(), and ee_Initialize(). Inspect the reported Conda OpenSSL failure and the Python environment selected by reticulate. Done means ee_install() creates the rgee environment with earthengine-api available and ee_Initialize() completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, r
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100