csgillespie/efficientR

Cannot Knit book OS X 10.11.6

stuzog opened this issue · 2 comments

Following install instructions with RStudio 1.1.442, iMac 7,1 Knitting fails with indexRmd at:

label: unnamed-chunk-151 (with options) 
List of 2
 $ engine: chr "python"
 $ eval  : logi FALSE

Quitting from lines 2690-2693 (_main.Rmd) 
Error in py_get_attr_impl(x, name, silent) : 
  AttributeError: 'module' object has no attribute 'pyplot'
Calls: <Anonymous> ... $.python.builtin.object -> py_get_attr -> py_get_attr_impl -> .Call
Execution halted

I don't have a Mac to check. Would you update all packages? Also, what's sessionInfo() look like

SessionInfo:

> sessionInfo(package = NULL)
R version 3.4.3 (2017-11-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

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

loaded via a namespace (and not attached):
 [1] compiler_3.4.3  backports_1.1.2 bookdown_0.7    magrittr_1.5   
 [5] rprojroot_1.3-2 htmltools_0.3.6 tools_3.4.3     yaml_2.1.18    
 [9] Rcpp_0.12.16    stringi_1.1.7   rmarkdown_1.9   knitr_1.20     
[13] xfun_0.1        stringr_1.3.0   digest_0.6.15   packrat_0.4.9-1
[17] evaluate_0.10.1
>