DeepSpeech.py path must be in "" to allow spaces

Running ubuntu 18.04.
DeepSpeech.py does not accept any path given as an argument that contains space without the path is encapsulated with “”, i.e. /www Temp downloads/xx.csv must be written as “/www Temp downloads/xx.csv”.

This might be obvious to some, but it can be a pain to fix when dealing with a bunch of different issues at the same time.

Windows will do the same thing, so it is not ubuntu 18.04 specific.

perhaps the fix would be as simple as writing a few words or simply add it to the example in https://deepspeech.readthedocs.io/en/v0.9.2/TRAINING.html#transfer-learning-new-alphabet i.e. change path/to/release-checkpoint/folder to “path/to/release checkpoint/folder”

Thanks for writing the post. I’ll think about it how we can reflect that in the docs. But blanks in paths has always been a cause of joy in programming. Especially with windows :slight_smile:

please share examples of such usages, I feel like it’s more a shell-level issue than a deepspeech one.

@soerengustenhoff - What about if you escape the spaces, eg with a “\” as is usual on Unix-like systems?

Hi guyes.

I will try both escaping the spaces with \ and post the actual error that happens when the “” is left out.

but i do believe that lissyx is right, in this most likely being a shell issue.
i do believe the exact same thing will happen in windows. ( just an example, i know we cant train in windows).

So I’m sorry, but this is not something we can fix.

no, i am thinking the same.

BUT, now it is atleast in the discourse, and if others run into this “issue” then there is an easy fix for it :slight_smile:

2 Likes