You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
@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.
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:)
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 ?
Activity
louis-mouline commentedon Jan 20, 2019
Hello,
I have the same problem as danielp3011. Any update ?
Thank you
tagucci commentedon Feb 5, 2019
@danielp3011 @louis-mouline
Sorry, it is caused by setting xml_dir=
tmpas default. In python on windows, tmpdir is created atC:\TEMP,C:\TMP,\TEMP, and\TMP.pythonrouge/pythonrouge/pythonrouge.py
Lines 16 to 18 in 9d1393b
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:)kevinborg commentedon May 23, 2019
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 ?
louis-mouline commentedon May 23, 2019
@kevinborg To be totally honest with you, I've give up using Windows 10 and I've get around this problem using Google Colab.
kevinborg commentedon May 23, 2019
@louis-mouline thanks for your reply and recommending Google Colab, haven't tried it before. I'll give it a shot.