Skip to content

I have the following problem #29

Open

Description

@danielp3011

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?

Activity

  1. louis-mouline commented on Jan 20, 2019

    @louis-mouline

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

    Thank you

  2. tagucci commented on Feb 5, 2019

    @tagucci
    Owner

    @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.

    class Pythonrouge:
    def __init__(self, summary_file_exist=True, summary=None, reference=None,
    delete_xml=True, xml_dir='/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:)

  3. kevinborg commented on May 23, 2019

    @kevinborg

    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 ?

  4. louis-mouline commented on May 23, 2019

    @louis-mouline

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

  5. kevinborg commented on May 23, 2019

    @kevinborg

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions