Closed TPOW-001 closed 11 months ago
https://github.com/rstudio/reticulate/issues/1274 According to above issues of reticulate, I got some information after run:
>debug(jsonlite:::parse_string)
> library(SCP)
debugging in: parse_string(txt, bigint_as_char)
debug: {
if (length(txt) > 1) {
txt <- paste(txt, collapse = "\n")
}
.Call(R_parse, txt, bigint_as_char)
}
Browse[2]> txt
[1] "'Analysis' \xa4\xa3\xacO\xa4\xba\xb3\xa1\xa9Υ~\xb3\xa1\xa9R\xa5O\xa1B\xa5i\xb0\xf5\xa6檺\xb5{\xa6\xa1\xa9Χ妸\xc0ɡC"
[2] "{"
[3] " \"active_prefix\": null,"
[4] " \"active_prefix_name\": null,"
[5] " \"channels\": ["
[6] " \"https://repo.anaconda.com/pkgs/main/win-64\","
[7] " \"https://repo.anaconda.com/pkgs/main/noarch\","
[8] " \"https://repo.anaconda.com/pkgs/r/win-64\","
[9] " \"https://repo.anaconda.com/pkgs/r/noarch\","
[10] " \"https://repo.anaconda.com/pkgs/msys2/win-64\","
[11] " \"https://repo.anaconda.com/pkgs/msys2/noarch\""
[12] " ],"
[13] " \"conda_build_version\": \"not installed\","
[14] " \"conda_env_version\": \"4.8.3\","
[15] " \"conda_location\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\lib\\\\site-packages\\\\conda\","
[16] " \"conda_prefix\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\","
[17] " \"conda_private\": false,"
[18] " \"conda_shlvl\": -1,"
[19] " \"conda_version\": \"4.8.3\","
[20] " \"config_files\": [],"
[21] " \"default_prefix\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\","
[22] " \"env_vars\": {"
[23] " \"CIO_TEST\": \"<not set>\","
[24] " \"CONDA_EXE\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\condabin\\\\..\\\\Scripts\\\\conda.exe\","
[25] " \"CONDA_EXES\": \"\\\"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\condabin\\\\..\\\\Scripts\\\\conda.exe\\\" \","
[26] " \"CONDA_ROOT\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\","
[27] " \"HOMEPATH\": \"\\\\Users\\\\TPOW31714\","
[28] " \"PATH\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1;C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\Library\\\\mingw-w64\\\\bin;C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\Library\\\\usr\\\\bin;C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\Library\\\\bin;C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\Scripts;C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\bin;C:\\\\Users\\\\TPOW31714\\\\anaconda3\\\\condabin;C:\\\\Users\\\\TPOW31714\\\\anaconda3\\\\Scripts;C:\\\\Users\\\\TPOW31714\\\\anaconda3\\\\Library\\\\bin;C:\\\\Users\\\\TPOW31714\\\\anaconda3\\\\Library\\\\usr\\\\bin;C:\\\\Users\\\\TPOW31714\\\\anaconda3\\\\Library\\\\mingw-w64\\\\bin;C:\\\\rtools42\\\\x86_64-w64-mingw32.static.posix\\\\bin;C:\\\\rtools42\\\\usr\\\\bin;C:\\\\Program Files\\\\R\\\\R-4.2.2\\\\bin\\\\x64;C:\\\\Program Files\\\\Trend Micro\\\\AMSP\\\\;C:\\\\Program Files\\\\Common Files\\\\Oracle\\\\Java\\\\javapath;C:\\\\Program Files (x86)\\\\Common Files\\\\Oracle\\\\Java\\\\javapath;C:\\\\Program Files (x86)\\\\Applied BioSystems\\\\QuantStudio Real-Time PCR Software\\\\bin;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Program Files (x86)\\\\NVIDIA Corporation\\\\PhysX\\\\Common;C:\\\\Program Files\\\\NVIDIA Corporation\\\\NVIDIA NvDLISR;C:\\\\WINDOWS\\\\system32;C:\\\\WINDOWS;C:\\\\WINDOWS\\\\System32\\\\Wbem;C:\\\\WINDOWS\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\WINDOWS\\\\System32\\\\OpenSSH\\\\;C:\\\\Program Files\\\\dotnet\\\\;C:\\\\Program Files (x86)\\\\Pulse Secure\\\\VC142.CRT\\\\X64\\\\;C:\\\\Program Files (x86)\\\\Pulse Secure\\\\VC142.CRT\\\\X86\\\\;C:\\\\Program Files (x86)\\\\Common Files\\\\Pulse Secure\\\\TNC Client Plugin\\\\;C:\\\\Program Files (x86)\\\\Applied Biosystems\\\\QuantStudio Design \","
[29] " \"PSMODULEPATH\": \"C:\\\\Program Files\\\\WindowsPowerShell\\\\Modules;C:\\\\WINDOWS\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules\","
[30] " \"PYTHONIOENCODING\": \"utf-8\","
[31] " \"REQUESTS_CA_BUNDLE\": \"<not set>\","
[32] " \"RMARKDOWN_MATHJAX_PATH\": \"C:/Program Files/RStudio/resources/app/resources/mathjax-27\","
[33] " \"RS_RPOSTBACK_PATH\": \"C:/Program Files/RStudio/resources/app/bin/rpostback.exe\","
[34] " \"R_RTOOLS42_PATH\": \"C:\\\\rtools42/x86_64-w64-mingw32.static.posix/bin;C:\\\\rtools42/usr/bin\","
[35] " \"SSL_CERT_FILE\": \"<not set>\""
[36] " },"
[37] " \"envs\": ["
[38] " \"C:\\\\Users\\\\TPOW31714\\\\AppData\\\\Local\\\\r-miniconda\\\\envs\\\\r-reticulate\","
[39] " \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\","
[40] " \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\envs\\\\r-reticulate\""
[41] " ],"
[42] " \"envs_dirs\": ["
[43] " \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\envs\","
[44] " \"C:\\\\Users\\\\TPOW31714\\\\Documents\\\\.conda\\\\envs\","
[45] " \"C:\\\\Users\\\\TPOW31714\\\\AppData\\\\Local\\\\conda\\\\conda\\\\envs\""
[46] " ],"
[47] " \"is_windows_admin\": false,"
[48] " \"netrc_file\": null,"
[49] " \"offline\": false,"
[50] " \"pkgs_dirs\": ["
[51] " \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\pkgs\","
[52] " \"C:\\\\Users\\\\TPOW31714\\\\Documents\\\\.conda\\\\pkgs\","
[53] " \"C:\\\\Users\\\\TPOW31714\\\\AppData\\\\Local\\\\conda\\\\conda\\\\pkgs\""
[54] " ],"
[55] " \"platform\": \"win-64\","
[56] " \"python_version\": \"3.7.7.final.0\","
[57] " \"rc_path\": \"C:\\\\Users\\\\TPOW31714\\\\Documents\\\\.condarc\","
[58] " \"requests_version\": \"2.24.0\","
[59] " \"root_prefix\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\","
[60] " \"root_writable\": true,"
[61] " \"site_dirs\": [],"
[62] " \"sys.executable\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\python.exe\","
[63] " \"sys.prefix\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\","
[64] " \"sys.version\": \"3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)]\","
[65] " \"sys_rc_path\": \"C:\\\\Users\\\\TPOW31~1\\\\AppData\\\\Local\\\\R-MINI~1\\\\.condarc\","
[66] " \"user_agent\": \"conda/4.8.3 requests/2.24.0 CPython/3.7.7 Windows/10 Windows/10.0.22621\","
[67] " \"user_rc_path\": \"C:\\\\Users\\\\TPOW31714\\\\Documents\\\\.condarc\","
[68] " \"virtual_pkgs\": ["
[69] " ["
[70] " \"__cuda\","
[71] " \"12.2\""
[72] " ]"
[73] " ]"
[74] "}"
I am not sure what caused the error. However, you can try solving it by following these steps:
SCP::PrepareEnv(force = TRUE)
to reinstall the SCP python environment.library(SCP)
If these steps do not work, please inform me so that I can assist you further.
I start a new R session, run following codes, but still got the same results:
> SCP::PrepareEnv(force = TRUE)
The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
which was just loaded, will retire in October 2023.
Please refer to R-spatial evolution reports for details, especially
https://r-spatial.org/r/2023/05/15/evolution4.html.
It may be desirable to make the sf package available;
package maintainers should consider adding sf to Suggests:.
The sp package is now running under evolution status 2
(status 2 uses the sf package in place of rgdal)
Error: lexical error: invalid char in json text.
'Analysis' <a4><a3><ac>O<a4><ba
(right here) ------^
You can try running the following code again:
SCP::PrepareEnv(conda=NULL, force=TRUE)
conda=NULL
means that the latest version of conda will be downloaded and installed.
Please give this command a try and check if the issue persists.
Thanks for the assitance! Your help made it possible for me to run your remarkable package, and I greatly appreciate it.
Here is the error information when I library SCP, please help me to resolve this problem: