question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run lightgbm with config file

See original GitHub issue

Hello, 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

Thank you for your help.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
Firenze11commented, Sep 11, 2017

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.

1reaction
YangWenfengcommented, Oct 9, 2017

@JohnM5 $ cd /usr/local/opt/gcc/lib/gcc; ln -s 7/ 6

Read more comments on GitHub >

github_iconTop Results From Across the Web

LightGBM FAQ — LightGBM 3.3.3.99 documentation
3. When running LightGBM on a large dataset, my computer runs out of RAM. 4. I am using Windows. Should I use Visual...
Read more >
Error when trying to use source-built python package for M1 mac
Recently, I've had a chance to work on Mac M1 for a few minutes. So I checked whether LightGBM can be installed on...
Read more >
LightGBMError: b'Check failed: config->bagging_freq > 0 ...
Working with lightGBM on Python and as it doesn't have enough documentation, I am unable to tackle this issue since a while.
Read more >
LightGBM - Read the Docs
Open LightGBM.sln file with Visual Studio, choose Release_mpi configuration ... So we cannot compare them in the exact same model setting.
Read more >
How to Install Lightgbm on Windows? - GeeksforGeeks
Follow the below steps to install the Lightgbm on Windows using the setup.py file: Step 1: Download the latest source package of Lightgbm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found