r-spatial / rgee

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

ee_install() Error #190

Closed peterpothmann closed 2 years ago

peterpothmann commented 2 years ago

At submit an issue, please attached the following information of your rgee session:

library(rgee)

# Initialize the Earth Engine module.
ee_Initialize()

# Print metadata for a DEM dataset.
print(ee$Image('USGS/SRTMGL1_003')$getInfo())

Attach your Python (reticulate) configuration:

library(reticulate)
py_config()

Description

I want to run ee_install to install the python gee API.

What I Did

`rgee::ee_install() ------------------------------------------- Python configuration used to create rgee -- python: C:/Users/ppoth/AppData/Local/r-miniconda/envs/r-reticulate/python.exe libpython: C:/Users/ppoth/AppData/Local/r-miniconda/envs/r-reticulate/python36.dll pythonhome: C:/Users/ppoth/AppData/Local/r-miniconda/envs/r-reticulate version: 3.6.13 (default, Sep 23 2021, 07:38:49) [MSC v.1916 64 bit (AMD64)] Architecture: 64bit numpy: C:/Users/ppoth/AppData/Local/r-miniconda/envs/r-reticulate/Lib/site-packages/numpy numpy_version: 1.19.5


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

Remove all packages in environment C:\Users\ppoth\AppData\Local\R-MINI~1\envs\rgee:

Package Plan

environment location: C:\Users\ppoth\AppData\Local\R-MINI~1\envs\rgee

The following packages will be REMOVED:

bzip2-1.0.8-h8ffe710_4 ca-certificates-2021.10.8-h5b45459_0 certifi-2020.6.20-pyhd3eb1b0_3 libffi-3.4.2-h0e60522_4 libzlib-1.2.11-h8ffe710_1013 openssl-3.0.0-h8ffe710_1 pip-21.3.1-pyhd8ed1ab_0 python-3.10.0-hcf16a7b_2_cpython setuptools-58.0.4-py310haa95532_0 sqlite-3.36.0-h8ffe710_2 tk-8.6.11-h8ffe710_1 tzdata-2021e-he74cb21_0 ucrt-10.0.20348.0-h57928b3_0 vc-14.2-hb210afc_5 vs2015_runtime-14.29.30037-h902a5da_5 wheel-0.37.0-pyhd8ed1ab_1 wincertstore-0.2-py310haa95532_2 xz-5.2.5-h62dcd97_1

Preparing transaction: ...working... done Verifying transaction: ...working... done Executing transaction: ...working... done

  1. Creating a Python Environment (rgee) Collecting package metadata (current_repodata.json): ...working... done Solving environment: ...working... done

Package Plan

environment location: C:\Users\ppoth\AppData\Local\R-MINI~1\envs\rgee

added / updated specs:

The following NEW packages will be INSTALLED:

bzip2 conda-forge/win-64::bzip2-1.0.8-h8ffe710_4 ca-certificates conda-forge/win-64::ca-certificates-2021.10.8-h5b45459_0 certifi pkgs/main/noarch::certifi-2020.6.20-pyhd3eb1b0_3 libffi conda-forge/win-64::libffi-3.4.2-h0e60522_4 libzlib conda-forge/win-64::libzlib-1.2.11-h8ffe710_1013 openssl conda-forge/win-64::openssl-3.0.0-h8ffe710_1 pip conda-forge/noarch::pip-21.3.1-pyhd8ed1ab_0 python conda-forge/win-64::python-3.10.0-hcf16a7b_2_cpython setuptools pkgs/main/win-64::setuptools-58.0.4-py310haa95532_0 sqlite conda-forge/win-64::sqlite-3.36.0-h8ffe710_2 tk conda-forge/win-64::tk-8.6.11-h8ffe710_1 tzdata conda-forge/noarch::tzdata-2021e-he74cb21_0 ucrt conda-forge/win-64::ucrt-10.0.20348.0-h57928b3_0 vc conda-forge/win-64::vc-14.2-hb210afc_5 vs2015_runtime conda-forge/win-64::vs2015_runtime-14.29.30037-h902a5da_5 wheel conda-forge/noarch::wheel-0.37.0-pyhd8ed1ab_1 wincertstore pkgs/main/win-64::wincertstore-0.2-py310haa95532_2 xz conda-forge/win-64::xz-5.2.5-h62dcd97_1

Preparing transaction: ...working... done Verifying transaction: ...working... done Executing transaction: ...working... done #

To activate this environment, use

#

$ conda activate rgee

#

To deactivate an active environment, use

#

$ conda deactivate

rgee::ee_install want to store the environment variables: EARTHENGINE_PYTHON and EARTHENGINE_ENV in your .Renviron file to use the Python path: C:\Users\ppoth\AppData\Local\r-miniconda\envs\rgee\python.exe in future sessions. Would you like to continues? [Y/n]:y

  1. The Environment Variables: 'EARTHENGINE_PYTHON=C:\Users\ppoth\AppData\Local\r-miniconda\envs\rgee\python.exe' and 'EARTHENGINE_ENV=rgee' were saved in the .Renviron (C:\Users\ppoth\Documents/.Renviron) file. Remember that you could remove EARTHENGINE_PYTHON and EARTHENGINE_ENV using rgee::ee_clean_pyenv().

  2. Installing the earthengine-api. Running: reticulate::py_install(packages = 'earthengine-api', envname = 'C:/Users/ppoth/AppData/Local/r-miniconda/envs/rgee')

Collecting package metadata (current_repodata.json): ...working... done Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): ...working... done Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

Fehler: one or more Python packages failed to install [error code 1] Zusätzlich: Warnmeldungen: 1: In read_python_versions_from_registry("HCU", key = "PythonCore") : Unexpected format for PythonCore version: 3.10 2: In read_python_versions_from_registry("HCU", key = "PythonCore") : Unexpected format for PythonCore version: 3.10 3: In read_python_versions_from_registry("HCU", key = "PythonCore") : Unexpected format for PythonCore version: 3.10

peterpothmann commented 2 years ago

Ok, i made it run. I installed pythen API manuell in the environment. Then it works. Thanks for your work and this package!