-
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
I am stuck with lightgbm R installation. Please Help #2997
Comments
Hello @varunmmm , I'd like to help you! Can you please provide answers to the following:
Assuming you have followed [our installation instructions]((https://github.com/microsoft/LightGBM/blob/master/R-package/README.md#installation), the following should allow you to build the R package: git clone --recursive https://github.com/microsoft/LightGBM
cd LightGBM
Rscript build_r.R Yesterday we got a report (#2995) that suggested that installation is broken right now with Visual Studio. It was a different error message than you're getting, but maybe the same root cause. If the code I posted above doesn't work for you, you can try with the fixes we have coming in #2963 (#2995 (comment)) git clone --recursive https://github.com/jameslamb/LightGBM
cd LightGBM
git fetch origin r/msvc-support
git checkout r/msvc-support
Rscript build_r.R Please let me know the answers to those questions and whether or not either code snippet works. Hopefully I can get you up and running soon. Apologies for the frustration. |
Hi @jameslamb thanks for your prompt response. Please find my response below :
So I have followed the instructions you mentioned above. Now getting error stating "Rscript is not recognized". I have updated system variables as well not sure why this error is coming? System variables update Screenshot |
Ok great. I know that on #2995 we got a report that versions of CMake 3.17.x might not work well with our installation and you may need to downgrade to 3.12.x (#2995 (comment)). I haven't confirmed that yet but it did work for that person.
|
I can see from your screenshot that you added paths of executables, but paths of folders should be there. |
Hi Both @jameslamb @StrikerRUS I have just changed path as suggested by @StrikerRUS, so removed Rscript and CMake. So Rscript is can be recognized by system but now getting another error. Updated system variables path now |
Hmm, looks like escaping issue ( |
Hi @StrikerRUS really appreciate your effort. I tried to build package from different folder which doesn't has whitespace. Now getting package dependency error but i do have all packages mentioned in below error message. |
I did not notice in your previous screenshot that you were running code from inside of Please remove any files in If you run Also, could you please copy the outputs and paste them as text here instead of screenshots? It will hep others searching our issues for similar messages. Finally...could you try from a plain |
@jameslamb I have done below changes now :
When I run Rscript build_r.R getting below error: `D:\LightGBM>Rscript build_r.R
-- Configuring incomplete, errors occurred!
could not find any instance of Visual Studio. -- Configuring incomplete, errors occurred!
to get the value of VCTargetsPath:
Exit code: 1 -- Configuring incomplete, errors occurred! -- Configuring incomplete, errors occurred! -- Configuring incomplete, errors occurred!
|
Great! Seems like your R setup is fixed. Now the error you're getting looks very similar to the one reported in #2995. As I mentioned in #2997 (comment), can you p lease try the fix from that issue? We're trying to get it merged soon.
|
Ohh God I can't believe this, Finally it worked !! |
Woo! Thanks for sticking with it and for using LightGBM! We have several pull requests coming up in the next 30 days that should make the installation process for R a lot easier. I'll close this issue, come back any time if you face other difficulties. |
Hi everyone, I'm using Windows 10, RStudio 3.6.3 and I'm trying to install "lightgbm" package in R. I have tried everything I guess but I can not install it. Does it work on RStudio and how can I install it successfully? Thank you so much. |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
I have tried many things to get this package installed in R but couldn't do it. So i am following exact same steps mentioned in below post but getting error. Somebody please help me out it's killing my time and i am just frustrated with this.
https://github.com/microsoft/LightGBM/issues/912#issuecomment-329496254
Error message below
The text was updated successfully, but these errors were encountered: