Open
Description
I was getting an error when using ee_check():
> ee_check()
◉ Python version
✔ [Ok] C:/Users/ANMOD4/AppData/Local/r-miniconda/envs/rgee_py/python.exe v3.12
Error in strsplit(a, "[.-]") : non-character argument
After taking a look into what could be the issue,
I found that:
py_version <- py_discover_config()[["version"]] #creates a list
Therefore, when using:
utils::compareVersion(py_version, "3.5")
Error in strsplit(a, "[.-]") : non-character argument #it produces the error
The issue is solved by simply setting the config version as a character, so it can compare the two strings:
py_version <- as.character(py_discover_config()[["version"]])
◉ Python version
✔ [Ok] C:/Users/ANMOD4/AppData/Local/r-miniconda/envs/rgee/python.exe v3.12
◉ Python packages:
✔ [Ok] numpy
✔ [Ok] earthengine-api
Is there a reason to use the version as a list instead of a string?
Metadata
Metadata
Assignees
Labels
No labels