reticulate use minonconda does not change conda environment

Hi,

I am currently working on my r-package that that has a reticulate interface.
I notice that reticulate does not want to change miniconda environments. This means that python packages that are installed in the r-eikon environment cannot be loaded as r is looking in the wrong environment. I also installed the github version of reticulate who also showed this behavior. Previously I did not have this issue and it started after updating reticulate.

Does anyone has got an idea how to get this environment changed?

many thanks

Laurens

> reticulate::use_miniconda(condaenv = "r-eikon", required = T)
> reticulate::py_config()
python:         C:/Users/XXXX/AppData/Local/r-miniconda/envs/r-reticulate/python.exe
libpython:      C:/Users/XXXX/AppData/Local/r-miniconda/envs/r-reticulate/python38.dll
pythonhome:     C:/Users/XXXX/AppData/Local/r-miniconda/envs/r-reticulate
version:        3.8.12 | packaged by conda-forge | (default, Oct 12 2021, 21:19:05) [MSC v.1916 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:/Users/XXXX/AppData/Local/r-miniconda/envs/r-reticulate/Lib/site-packages/numpy
numpy_version:  1.22.1
> reticulate::conda_list()
          name                                                                            python
1         base                     C:\\Users\\XXXX\\AppData\\Local\\r-miniconda/python.exe
2      r-eikon      C:\\Users\\XXXX\\AppData\\Local\\r-miniconda\\envs\\r-eikon/python.exe
3 r-reticulate C:\\Users\\XXXX\\AppData\\Local\\r-miniconda\\envs\\r-reticulate/python.exe
> reticulate::use_miniconda(condaenv = "r-eikon", required = T)
> reticulate::py_config()
python:         C:/Users/XXXX/AppData/Local/r-miniconda/envs/r-reticulate/python.exe
libpython:      C:/Users/XXXX/AppData/Local/r-miniconda/envs/r-reticulate/python38.dll
pythonhome:     C:/Users/XXXX/AppData/Local/r-miniconda/envs/r-reticulate
version:        3.8.12 | packaged by conda-forge | (default, Oct 12 2021, 21:19:05) [MSC v.1916 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:/Users/XXXX/AppData/Local/r-miniconda/envs/r-reticulate/Lib/site-packages/numpy
numpy_version:  1.22.1
> Sys.info() 
          sysname           release           version          nodename           machine             login 
        "Windows"          "10 x64"     "build 19044" "some machine"          "x86-64"      "XXXX" 
             user    effective_user 
     "XXXX"      "XXXX"
> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    
system code page: 65001

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] testthat_3.1.2 

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.8             lubridate_1.8.0        here_1.0.1             countrycode_1.3.0      lattice_0.20-45       
 [6] prettyunits_1.1.1      png_0.1-7              ps_1.6.0               zoo_1.8-9              rprojroot_2.0.2       
[11] foreach_1.5.1          utf8_1.2.2             R6_2.5.1               httr_1.4.2             pillar_1.6.5          
[16] rlang_1.0.0            rstudioapi_0.13        data.table_1.14.2      DatastreamDSWS2R_1.8.2 callr_3.7.0           
[21] Matrix_1.4-0           reticulate_1.24        desc_1.4.0             devtools_2.4.3         stringr_1.4.0         
[26] compiler_4.1.2         pkgconfig_2.0.3        qdapRegex_0.7.2        pkgbuild_1.3.1         tidyselect_1.1.1      
[31] tibble_3.1.6           codetools_0.2-18       fansi_1.0.2            crayon_1.4.2           dplyr_1.0.7           
[36] withr_2.4.3            brio_1.1.3             rappdirs_0.3.3         grid_4.1.2             jsonlite_1.7.3        
[41] lifecycle_1.0.1        magrittr_2.0.2         cli_3.1.1              stringi_1.7.6          cachem_1.0.6          
[46] fs_1.5.2               remotes_2.4.2          ellipsis_0.3.2         xts_0.12.1             vctrs_0.3.8           
[51] generics_0.1.1         iterators_1.0.13       tools_4.1.2            glue_1.6.1             purrr_0.3.4           
[56] processx_3.5.2         pkgload_1.2.4          fastmap_1.1.0          sessioninfo_1.2.2      memoise_2.0.1         
[61] usethis_2.1.5      

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.