PythonEmbedInR is one of synapser's dependencies. It's an R package that requires C compilation.
Mac System Dependencies
- Xcode
- OpenSSL
- wget
Common errors and fixes:
Mac - libcryto.a not found
Repro
There are 2 ways to repro this problem. In Terminal:
- clone the repo
run the following commands:
cd PythonEmbedInR R CMD build . R CMD install PythonEmbedInR_0.0.0.tar.gz
error:
* installing to library ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library’ * installing *source* package ‘PythonEmbedInR’ ... ./configure: line 32: wget: command not found % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 19.6M 100 19.6M 0 0 19.5M 0 0:00:01 0:00:01 --:--:-- 19.5M Mac specific configuration cp: /usr/local/opt/openssl/lib/libcrypto.a: No such file or directory ERROR: configuration failed for package ‘PythonEmbedInR’ * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/PythonEmbedInR’ * restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/PythonEmbedInR’
In RStudio:
- Open PythonEmbedInR project
- Click
Install and Restart
Error:
==> R CMD INSTALL --no-multiarch --with-keep.source PythonEmbedInR * installing to library ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library’ * installing *source* package ‘PythonEmbedInR’ ... ./configure: line 32: wget: command not found % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Failed to download https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tgz 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (77) error setting certificate verify locations: CAfile: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/PythonEmbedInR/lib/python3.5/site-packages/pip/_vendor/requests/cacert.pem CApath: none ERROR: configuration failed for package ‘PythonEmbedInR’ * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/PythonEmbedInR’ * restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/PythonEmbedInR’ Exited with status 1.
Fix
Install the Mac System Dependencies listed above.