Closed JialiJIN closed 2 years ago
Hi it seems it is a problem with proxies https://stackoverflow.com/questions/67297278/valueerror-check-hostname-requires-server-hostname.
Can you create Python ENV with earthengine-api in your system?
Hi Cesar Aybar,
I just solved the problem. I reset my python evns. And I found the Rstudio has its own default python. So every time when I load rgee, I have the problem to set the python envs for rgee. However, when I load rgee in R, it works fine (since R doesn't have the default python I guess).
For me, it is quite weird that I have to define the specific python for rgee every time before I load the package. I used the following codes, and it works:
library(reticulate)reticulate::use_condaenv("C:/Users/dell/AppData/Local/r-miniconda", required = TRUE)py_config()library(rgee)ee_Initialize()
Thanks for your kind reply. :)
Best regards, Jiali Jin
On Fri, Aug 27, 2021 at 7:37 PM Cesar Aybar @.***> wrote:
Hi it seems it is a problem with proxies https://stackoverflow.com/questions/67297278/valueerror-check-hostname-requires-server-hostname .
Can you create Python ENV with earthengine-api in your system?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/r-spatial/rgee/issues/180#issuecomment-907137909, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2H2MUADUURP6OMKLQ5PWLT652IBANCNFSM5C2ZNB6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
-- Jiali Emily Jin Doctor / Research Associate
Research Insititute of Forestry, Chinese Academy of Forestry Xiangshan Road, Haidian District, Beijing, China, 100091
Skype: Jiali Emily Jin Twitter: @Jiali_Emily_JIN
Hi @JialiJIN the problem has been solved!. Please run as follow to fix!
remotes::install_github("r-spatial/rgee")
library(rgee)
ee_install()
I installed rgee by the following steps:
remotes::install_github("r-spatial/rgee") ----- DONE
library(reticulate) ------ DONE
But when I ran the code: rgee::ee_install()
it shows the message below:
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
$ C:\Users\dell\AppData\Local\R-MINI~1\Scripts\conda-script.py create --yes --prefix C:/Users/dell/AppData/Local/r-miniconda/envs/r-reticulate python=3.6 numpy -c conda-forge
environment variables: CIO_TEST=
CONDA_EXE=C:\Users\dell\AppData\Local\R-MINI~1\condabin..\Scripts\conda.exe
CONDA_EXES="C:\Users\dell\AppData\Local\R-MINI~1\condabin..\Scripts\conda.exe"
CONDA_ROOT=C:\Users\dell\AppData\Local\R-MINI~1
CURL_CA_BUNDLE=
HOMEPATH=\Users\dell
PATH=C:\Users\dell\AppData\Local\R-MINI~1;C:\Users\dell\AppData\Local\R-MIN
I~1\Library\mingw-w64\bin;C:\Users\dell\AppData\Local\R-MINI~1\Library
\usr\bin;C:\Users\dell\AppData\Local\R-MINI~1\Library\bin;C:\Users\del
l\AppData\Local\R-MINI~1\Scripts;C:\Users\dell\AppData\Local\R-MINI~1\
bin;C:\rtools40\usr\bin;C:\Program Files\R\R-4.1.1\bin\x64;C:\Program
Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\W
indows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\
v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\dell\AppData\Local\Microso
ft\WindowsApps;C:\Users\dell\anaconda3;C:\Users\dell\anaconda3\Scripts
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows
PowerShell\v1.0\Modules
PYTHONIOENCODING=utf-8
REQUESTS_CA_BUNDLE=
RMARKDOWN_MATHJAX_PATH=C:/Program Files/RStudio/resources/mathjax-27
RS_RPOSTBACK_PATH=C:/Program Files/RStudio/bin/rpostback
SSL_CERT_FILE=
populated config files : C:\Users\dell.condarc conda version : 4.10.3 conda-build version : not installed python version : 3.9.5.final.0 virtual packages : win=0=0 archspec=1=x86_64 base environment : C:\Users\dell\AppData\Local\R-MINI~1 (writable) conda av data dir : C:\Users\dell\AppData\Local\R-MINI~1\etc\conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\dell\AppData\Local\R-MINI~1\pkgs C:\Users\dell.conda\pkgs C:\Users\dell\AppData\Local\conda\conda\pkgs envs directories : C:\Users\dell\AppData\Local\R-MINI~1\envs C:\Users\dell.conda\envs C:\Users\dell\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.10.3 requests/2.25.1 CPython/3.9.5 Windows/10 Windows/10.0.19043 administrator : False netrc file : None offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
Upload did not complete. reticulate did not find any Python ENV on your system.
Would you like to download and install Miniconda? Miniconda is an open source environment management system for Python. See https://docs.conda.io/en/latest/miniconda.html for more details. Windows users must install miniconda/anaconda to use rgee!
If you think it is an error since you know you have a Python environment in your system. Run as follow to solve:
I am wondering if you have any solutions?
Thanks