Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catboost dependency #11

Closed
laresbernardo opened this issue Sep 22, 2021 · 5 comments
Closed

catboost dependency #11

laresbernardo opened this issue Sep 22, 2021 · 5 comments

Comments

@laresbernardo
Copy link
Contributor

When installing,catboost wasn't found. Maybe add this step into the README file? O remove from Imports.

Installing package into ‘/Users/bernardolares/Library/R/4.0/library’
(as ‘lib’ is unspecified)
ERROR: dependency ‘catboost’ is not available for package ‘forester’
* removing ‘/Users/bernardolares/Library/R/4.0/library/forester’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/3w/x0bjsdv52v3b3kjbw87y3wfw0000gn/T//Rtmp2QFGHc/file24981fb7f433/forester_1.0.0.tar.gz’ had non-zero exit status
@laresbernardo
Copy link
Contributor Author

laresbernardo commented Sep 22, 2021

Also, after installing and refreshing my R session, I'm getting this error with the titanic example:

Error in library.dynam(lib, package, package.lib) : 
  shared object ‘libcatboostr.so’ not foundv

My sessionInfo():

> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS  11.6

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

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

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

other attached packages:
[1] forester_1.0.0

loaded via a namespace (and not attached):
 [1] tidyselect_1.1.1   purrr_0.3.4        listenv_0.8.0      splines_4.0.3      lattice_0.20-41   
 [6] colorspace_2.0-2   vctrs_0.3.8        generics_0.1.0     utf8_1.2.2         survival_3.2-7    
[11] prodlim_2019.11.13 rlang_0.4.11       pillar_1.6.2       glue_1.4.2         withr_2.4.2       
[16] DBI_1.1.0          lifecycle_1.0.0    lava_1.6.10        timeDate_3043.102  munsell_0.5.0     
[21] gtable_0.3.0       future_1.22.1      recipes_0.1.16     codetools_0.2-18   DALEX_2.3.0       
[26] parallel_4.0.3     class_7.3-17       fansi_0.5.0        Rcpp_1.0.7         scales_1.1.1      
[31] ipred_0.9-12       jsonlite_1.7.2     parallelly_1.28.1  ranger_0.13.1      ggplot2_3.3.5     
[36] digest_0.6.27      dplyr_1.0.7        grid_4.0.3         tools_4.0.3        magrittr_2.0.1    
[41] tibble_3.1.4       crayon_1.4.1       tidyr_1.1.3        future.apply_1.8.1 pkgconfig_2.0.3   
[46] MASS_7.3-53        ellipsis_0.3.2     Matrix_1.2-18      lubridate_1.7.10   gower_0.2.2       
[51] assertthat_0.2.1   R6_2.5.1           globals_0.14.0     rpart_4.1-15       nnet_7.3-14       
[56] compiler_4.0.3  

Can't even load it manually. Any recommendation?

> library(catboost)
Error: package or namespace load failed for ‘catboost’ in library.dynam(lib, package, package.lib):
 shared object ‘libcatboostr.so’ not found

@Oliver-CISC
Copy link

@laresbernardo I had to visit the Catboost website and follow the instructions to install: https://catboost.ai/docs/installation/r-installation-binary-installation.html

@kozaka93
Copy link
Member

Thank you. The problem comes from, catboost library has not been yet available in CRAN. So, you can follow this link: https://catboost.ai/docs/concepts/r-installation.html to install catboost.

@mcavs
Copy link

mcavs commented Sep 27, 2021

@laresbernardo You can try to run the following codes to install for MacOS:

devtools::install_url('https://github.com/catboost/catboost/releases/download/v0.26.1/catboost-R-Darwin-0.26.1.tgz', INSTALL_opts = c("--no-multiarch", "--no-test-load"))

@laresbernardo
Copy link
Contributor Author

Thanks @mcavs That did the trick :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants