pythonrouge icon indicating copy to clipboard operation
pythonrouge copied to clipboard

I have the following problem

Open danielp3011 opened this issue 7 years ago • 5 comments

Hi guys, sry, that might be a dumb question, but I'm still new to python an github.

When trying the example code, I get the following error: File "C:\Users...\Anaconda3\lib\tempfile.py", line 368, in mkdtemp _os.mkdir(file, 0o700) FileNotFoundError: [WinError 3] The system cannot find the path specified: '/tmp/tmpdrthhe2i'

How can I solve that?

danielp3011 avatar Sep 03 '18 09:09 danielp3011

Hello, I have the same problem as danielp3011. Any update ?

Thank you

louis-mouline avatar Jan 20 '19 10:01 louis-mouline

@danielp3011 @louis-mouline Sorry, it is caused by setting xml_dir=tmp as default. In python on windows, tmpdir is created at C:\TEMP, C:\TMP, \TEMP, and \TMP. https://github.com/tagucci/pythonrouge/blob/9d1393bb017de14333a0b04f5f55f9f1c41b269c/pythonrouge/pythonrouge.py#L16-L18

I only tested on Ubuntu/Mac, so I couldn't realize this issue. Please set xml_dir=tempfile.gettempdir() when initializing pythonrouge. It may help you:)

tagucci avatar Feb 05 '19 12:02 tagucci

Hi, I have the same problem. Unfortunately this did not help. I changed xml_dir to xml_dir=tempfile.gettempdir() but says tempfile is not defined. can you please help me ?

kevinborg avatar May 23 '19 10:05 kevinborg

@kevinborg To be totally honest with you, I've give up using Windows 10 and I've get around this problem using Google Colab.

louis-mouline avatar May 23 '19 10:05 louis-mouline

@louis-mouline thanks for your reply and recommending Google Colab, haven't tried it before. I'll give it a shot.

kevinborg avatar May 23 '19 12:05 kevinborg