Can't run lightgbm with config file
See original GitHub issueHello, Thank you for providing an example with the zillow competition. I tried running the example but came with exactly the same problem as here: https://github.com/kaz-Anova/StackNet/issues/16
I can’t run lgbm and I have exactly the same output error:
Starting cross validation Fitting model : 0 Exception in thread “Thread-1” java.lang.IllegalStateException: failed to create LIGHTgbm subprocess with config name /Users/hadoop/StackNet/models/ucsbmggugdanr6qc19a64a7sv10.conf at ml.lightgbm.LightgbmRegressor.create_light_suprocess(LightgbmRegressor.java:426) at ml.lightgbm.LightgbmRegressor.fit(LightgbmRegressor.java:1885) at ml.lightgbm.LightgbmRegressor.run(LightgbmRegressor.java:516) at java.lang.Thread.run(Thread.java:748) Exception in thread “main” java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.lang.IllegalStateException: Tree is not fitted at ml.Bagging.scoringhelperbagv2.<init>(scoringhelperbagv2.java:109) at ml.Bagging.BaggingRegressor.predict2d(BaggingRegressor.java:669) at ml.Bagging.BaggingRegressor.predict_proba(BaggingRegressor.java:1875) at ml.stacknet.StackNetRegressor.fit(StackNetRegressor.java:3065) at stacknetrun.runstacknet.main(runstacknet.java:522) … 5 more
I tried to run lightgbm by itself by running it with the config file:
./lightgbm config=~ ./models/ucsbmggugdanr6qc19a64a7sv10.conf task=train
But I receive a ‘Permission denied’ error. I tried running the same command with sudo but I get
sudo: ./lightgbm: command not found
I checked and the jar file is in the same folder as the lib folder. Here is a screenshot of how my Stacknet folder is organized:
![screen shot 2017-09-09 at 12 33 57](https://user-images.githubusercontent.com/6024355/30239791-9a2b77a2-955b-11e7-875b-157cf354f271.png)
Thank you for your help.
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (6 by maintainers)
Hi @JohnM5 , I had the same error. I realized that my gcc version is 7 and I only had /usr/local/opt/gcc/lib/gcc/7/libgomp.1.dylib. So I created a directory “6” under /usr/local/opt/gcc/lib/gcc/ , and copied everything under “7” to “6”. No permission issue happened. Now things are working fine.
@JohnM5 $ cd /usr/local/opt/gcc/lib/gcc; ln -s 7/ 6