riccotti / LORE

LOcal Rule-based Exlanations
GNU General Public License v3.0
49 stars 30 forks source link

Error in subprocess.check_output(cmd.split(), stderr=subprocess.STDOUT) #11

Open bill315lee opened 2 years ago

bill315lee commented 2 years ago

subprocess.CalledProcessError: Command '['yadt/dTcmd', '-fd', '/home/lb/project/LORE/datasets/compas-scores-two-years.data', '-fm', '/home/lb/project/LORE/datasets/compas-scores-two-years.names', '-sep', ';', '-d', '/home/lb/project/LORE/datasets/compas-scores-two-years.dot']' returned non-zero exit status 127.

Please help

NinoChavigny commented 2 years ago

Hello, did you manage to find a fix for this error ? Have a good day !

oussama-soulimani commented 2 years ago

Hello guys, I had the same issue and solved it by modifying the arguments of the dTcmd command which can be done in pyyadt.py. The issue for me was that the ; after the -sep argument should be between quotation marks ";" Anyways, if that does not work for you, you should copy the cmd value and paste it in your terminal and keep modifying it until no error is shown and the output is correctly placed in the compas-scores-two-years.dot file provided in the arguments of cmd. (FYI: This works in a Linux environment and is not tested in others) Succes!

jdnklau commented 2 years ago

Hi,

for me it sufficed to include the yadt/ directory into the LD_LIBRARY_PATH env variable as the call to yadt/dTcmd threw an error of being unable to locate the libtbb.so.2. This was under Ubuntu.

Cheers