Skip to content
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

returned non-zero exit status 255. #30

Open
kevinborg opened this issue May 23, 2019 · 9 comments
Open

returned non-zero exit status 255. #30

kevinborg opened this issue May 23, 2019 · 9 comments

Comments

@kevinborg
Copy link

I am getting this error. Help me please.

image

@xiongma
Copy link

xiongma commented May 24, 2019

me too @bheinzerling Can you help me?

@xiongma
Copy link

xiongma commented May 24, 2019

this is running time log
2019-05-24 14:12:11,257 [MainThread ] [INFO ] Set ROUGE home directory to /usr/local/RELEASE-1.5.5. 2019-05-24 14:12:11,257 [MainThread ] [INFO ] Writing summaries. 2019-05-24 14:12:11,258 [MainThread ] [INFO ] Processing summaries. Saving system files to /tmp/tmp0tdk7ziz/system and model files to /tmp/tmp0tdk7ziz/model. 2019-05-24 14:12:11,258 [MainThread ] [INFO ] Processing files in rouge_test/reference. 2019-05-24 14:12:11,258 [MainThread ] [INFO ] Processing summary.001.txt. 2019-05-24 14:12:11,258 [MainThread ] [INFO ] Saved processed files to /tmp/tmp0tdk7ziz/system. 2019-05-24 14:12:11,258 [MainThread ] [INFO ] Processing files in rouge_test/model. 2019-05-24 14:12:11,259 [MainThread ] [INFO ] Processing summary.A.001.txt. 2019-05-24 14:12:11,259 [MainThread ] [INFO ] Saved processed files to /tmp/tmp0tdk7ziz/model. 2019-05-24 14:12:11,259 [MainThread ] [INFO ] Written ROUGE configuration to /tmp/tmpuina_tiw/rouge_conf.xml 2019-05-24 14:12:11,259 [MainThread ] [INFO ] Running ROUGE with command /usr/local/RELEASE-1.5.5/ROUGE-1.5.5.pl -e /usr/local/RELEASE-1.5.5/data -c 95 -2 -1 -U -r 1000 -n 4 -w 1.2 -a -m /tmp/tmpuina_tiw/rouge_conf.xml Illegal division by zero at /usr/local/RELEASE-1.5.5/ROUGE-1.5.5.pl line 2450. Traceback (most recent call last): File "test.py", line 16, in <module> output = r.convert_and_evaluate() File "/opt/modules/anaconda3/lib/python3.6/site-packages/pyrouge-0.1.3-py3.6.egg/pyrouge/Rouge155.py", line 367, in convert_and_evaluate rouge_output = self.evaluate(system_id, rouge_args) File "/opt/modules/anaconda3/lib/python3.6/site-packages/pyrouge-0.1.3-py3.6.egg/pyrouge/Rouge155.py", line 342, in evaluate rouge_output = check_output(command, env=env).decode("UTF-8") File "/opt/modules/anaconda3/lib/python3.6/subprocess.py", line 356, in check_output **kwargs).stdout File "/opt/modules/anaconda3/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['/usr/local/RELEASE-1.5.5/ROUGE-1.5.5.pl', '-e', '/usr/local/RELEASE-1.5.5/data', '-c', '95', '-2', '-1', '-U', '-r', '1000', '-n', '4', '-w', '1.2', '-a', '-m', '/tmp/tmpuina_tiw/rouge_conf.xml']' returned non-zero exit status 255.

@chenjun0210
Copy link

是不是我们跑的是中文的?我也遇到了这个错误

@ghost
Copy link

ghost commented Jun 19, 2019

I have the same problem, anyone could solve it? Win10, python 3.7

@xdolnak
Copy link

xdolnak commented Nov 28, 2019

I followed this tutorial https://poojithansl7.wordpress.com/2018/08/04/setting-up-rouge/ and fixed that error by alterning
ln -s WordNet-2.0-Exceptions/WordNet-2.0.exc.db WordNet-2.0.exc.db
to
ln -sf WordNet-2.0-Exceptions/WordNet-2.0.exc.db WordNet-2.0.exc.db

@RakshaAg
Copy link

Please help.
Same problem with windows 10 python 3.6

@RafaelWO
Copy link

RafaelWO commented May 30, 2020

This error also occurs if there are some unwanted characters in either the system or model summaries.
In my case it was the token <unk> which caused this error. I simply replaced it by UNK.

@wangzonghui1994
Copy link

是不是我们跑的是中文的?我也遇到了这个错误

请问您解决了吗,最后

@YKJamesMoriarty
Copy link

that is because you did not execute a command with administrator privileges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants