pyrouge icon indicating copy to clipboard operation
pyrouge copied to clipboard

print("Rouge returned a non-zero error code. Output was: ", file=sys.stderr)

Open vwoloszyn opened this issue 9 years ago • 1 comments

File "/Library/Python/2.7/site-packages/pyrouge/rouge.py", line 76 print("Rouge returned a non-zero error code. Output was: ", file=sys.stderr) ^ SyntaxError: invalid syntax

Do you have any idea how to solve this problem?

I installed this by pip install git+https://github.com/andersjo/pyrouge

Thanks in advanced

vwoloszyn avatar Jun 03 '16 18:06 vwoloszyn

Hi @vwoloszyn , I also got this issue. The workaround is to clone the code and then comment out the problematic line in rouge.py (I commented out all the print lines). Then do python setup.py install and you should be able to get through.

dcvan24 avatar Oct 27 '16 16:10 dcvan24