Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bhaddow opened this issue Dec 10, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@bhaddow
Copy link
Contributor

bhaddow commented Dec 10, 2021

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

@bhaddow bhaddow added the bug Something isn't working label Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant