tarsqi / ttk

Tarsqi Toolkit
Apache License 2.0
25 stars 10 forks source link

File paths do not always work for Windows. #82

Open marcverhagen opened 6 years ago

marcverhagen commented 6 years ago

This is a more general issue than https://github.com/tarsqi/ttk/issues/42.

There are know problems in Windows with file paths. Spaces in paths have been an issue and it looks like dashes in paths are a problem too, even though the way the problem manifests itself seems to be different across Windows versions (which I actually don't believe, but that is what first experiments show).

One reported problem is that if the name of the repository is ttk-master you can get an error reading the config.txt file:

capture1

I could not replicate this on a Windows 7 laptop, but I did get a classifier error:

ERROR: CLASSIFIER error:
        <type 'exceptions.IndexError'>
        pop from empty list

Also, on Windows a command line invocation requires for example the input file to have forward slashes, which is not the natural windows way.

In general all code dealing with input and output needs to be reviewed.