Skip to content

SLTev fails to delete temporary directory and reports mwerSegmenter failure #70

@bhaddow

Description

@bhaddow

Hi

When I run SLTev, it fails, reporting that mwerSegmenter is missing. After some digging, I realised that mwerSegmenter is fine. The problem occurs at this line:

shutil.rmtree(temp_folder_name)

The directory deletion fails (not sure why, could be an nfs problem) an exception is thrown, caught and turned into a mwerSegmenter error. Setting ignore_errors=True in shutil.rmtree(temp_folder) is a temporary fix, but I think the real fix is to use python's tempfile module to create a temporary directory.

A further problem is that catching the error, and outputting a generic mwerSegmenter message, makes this harder to debug

best
Barry

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions