-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[R-package] I never could make the library run any simple model. The session always exploded #2970
Comments
@DanielMarcelino Could you provide us with a bit more information? How did you install If you start from a completely clean session, do you still see this issue? I see you're running version 2.3.1. Is it possible for you to upgrade to the current version on |
Hi @jameslamb, thanks for asking.
|
Thanks! This looks exactly like our recommended approach to installing the R package right now, and I don't see any obvious issues in the logs. Can you share the exact R code that you're running which is resulting in the error? I can kind of see it in your first screenshot but I want too be sure there aren't other things you've run in the console in that session (just trying to rule things out). I believe we haven't tested with Catalina yet, so maybe there is something Catalina-specific that is causing this. I want to find the issue but I also want to be sure you can get back to work...do you have If you do, you could try rebuilding with export CXX=g++-8
export CC=gcc-8
Rscript build_r.R I use |
Sure, thanks fro replaying. Please consider that I upgraded from Mojave to Catalina. After that I've seen many mac users telling that they can't compile a C program on a Mac after upgrading to Catalina. Perhaps Apple just made our lives more difficult since then.
The reproduction example is this:
|
After rebuilding with the following parameters the problem was apparently solved. I'll do some testing tomorrow, but at least it worked now. Thanks.
|
@DanielMarcelino thanks very much! My best guess is that we have a Catalina-specific issue 😬 . I'm glad that |
@DanielMarcelino have you been having issues with other C++ projects on your Mac? A friend of mine said he's been unable to build R packages with C++ code on Catalina for a bit, and this fixed it: https://stackoverflow.com/questions/59071881/problems-with-c-and-gems-on-osx-catalina/59072909#59072909 |
Yes, I had. I saw some error mensagens while installing Rcpp package, for instance. But the issue with LightGBM was more subtle once it was perfect compiled and installed, but was not working. Thanks a lot for you guidance here. |
@jameslamb Hmm, seems that it is a general Catalina problem. Nothing can be done from LightGBM side. Can we close this issue? |
@DanielMarcelino I'm going to close this issue for now, since it does seem like an issue with Catalina and since you were able to use I do have an experimental setup that ignores ./build-cran-package.sh
R CMD INSTALL lightgbm_2.3.2.tar.gz It is VERY experimental and not something we're officially supporting yet, but when we eventually add it here it may help. ^ @StrikerRUS I'm mentioning this just to document that I think any incompatibility with Catalina might be limited to the installation path that uses |
After installed lightGBM, I never could run a simple model. The R session always abort after I press enter to fit the model, even the very simple ones as those provided in the demo section. I've two MacBook pro with different power and operating systems, but in none of them I could use the library. In a server, running a linux it was so simple to make it work properly though.
The text was updated successfully, but these errors were encountered: