rstudio / tfprobability

R interface to TensorFlow Probability
https://rstudio.github.io/tfprobability/
Other
54 stars 16 forks source link

Catch 22 in install procedure #114

Closed ThierryO closed 5 years ago

ThierryO commented 5 years ago

Running tfprobability::install_tfprobability() errors because of the missing python module which it tries to install.

Error: .onLoad failed in loadNamespace() for 'tfprobability', details:
  call: py_module_import(module, convert = convert)
error: ModuleNotFoundError: No module named 'tensorflow_probability'

Digging into the code and running the code below manually solved the problem for me.

tensorflow::install_tensorflow(
    method = "conda", conda = "auto", version = "default",
    extra_packages = "tensorflow-probability", pip_ignore_installed = FALSE
)
skeydan commented 5 years ago

Thanks for reporting! Were you using the current master branch of reticulate? In case you'd like to retry using reticulate master, let us know how it is going. (For background, there are a few installation-related changes going on there, and tensorflow and tfprobabilityare "downstream" :-))

What OS are you using?

ThierryO commented 5 years ago

Here is the sessioninfo. I installed the Python modules manually, so I can't reproduce the problem.

─ Session info ──────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value                       
 version  R version 3.6.1 (2019-07-05)
 os       Ubuntu 18.04.3 LTS          
 system   x86_64, linux-gnu           
 ui       RStudio                     
 language nl_BE:nl                    
 collate  nl_BE.UTF-8                 
 ctype    nl_BE.UTF-8                 
 tz       Europe/Brussels             
 date     2019-11-18                  

─ Packages ──────────────────────────────────────────────────────────────────────────────────────────────────────────
 package       * version date       lib source        
 base64enc       0.1-3   2015-07-28 [1] CRAN (R 3.6.1)
 config          0.3     2018-03-27 [1] CRAN (R 3.6.1)
 generics        0.0.2   2018-11-29 [1] CRAN (R 3.6.1)
 glue            1.3.1   2019-03-12 [1] CRAN (R 3.6.1)
 jsonlite        1.6     2018-12-07 [1] CRAN (R 3.6.1)
 keras           2.2.5.0 2019-10-08 [1] CRAN (R 3.6.1)
 lattice         0.20-38 2018-11-04 [4] CRAN (R 3.5.1)
 magrittr        1.5     2014-11-22 [1] CRAN (R 3.6.1)
 Matrix          1.2-17  2019-03-22 [4] CRAN (R 3.6.1)
 processx        3.4.1   2019-07-18 [1] CRAN (R 3.6.1)
 ps              1.3.0   2018-12-21 [1] CRAN (R 3.6.1)
 purrr           0.3.3   2019-10-18 [1] CRAN (R 3.6.1)
 R6              2.4.0   2019-02-14 [1] CRAN (R 3.6.1)
 Rcpp            1.0.2   2019-07-25 [1] CRAN (R 3.6.1)
 reticulate      1.13    2019-07-24 [1] CRAN (R 3.6.1)
 rlang           0.4.1   2019-10-24 [1] CRAN (R 3.6.1)
 rstudioapi      0.10    2019-03-19 [1] CRAN (R 3.6.1)
 tensorflow      2.0.0   2019-10-02 [1] CRAN (R 3.6.1)
 tfprobability   0.8.0.0 2019-10-30 [1] CRAN (R 3.6.1)
 tfruns          1.4     2018-08-25 [1] CRAN (R 3.6.1)
 tidyselect      0.2.5   2018-10-11 [1] CRAN (R 3.6.1)
 whisker         0.4     2019-08-28 [1] CRAN (R 3.6.1)
 yaml            2.2.0   2018-07-25 [1] CRAN (R 3.6.1)
 zeallot         0.1.0   2018-01-28 [1] CRAN (R 3.6.1)

[1] /home/thierry/R/x86_64-pc-linux-gnu-library/3.6
[2] /usr/local/lib/R/site-library
[3] /usr/lib/R/site-library
[4] /usr/lib/R/library
skeydan commented 5 years ago

Thanks! Then I'll close for now; please reopen if the problem reoccurs at a later time (with reticulate >= current master on github)