Cannot run viewer in windows due to error "NotImplementedError: cannot instantiate 'PosixPath' on your system"
Describe the bug On Windows, when running the ns-viewer command with a valid path to a config file, the error "NotImplementedError: cannot instantiate 'PosixPath' on your system" occurs. Strangely, ns-train works, as does the corresponding web viewer while it's training. I just cannot view a trained model after it's done.
To Reproduce Steps to reproduce the behavior:
- Be running windows
- try to run ns-viewer
Expected behavior It should not crash
I've never used Windows so I'm not entirely sure, maybe if you check the line of code the error is being thrown from you might be able to tell what's going on? maybe you don't have permission to access the directory or etc
I assumed this was a system compatibility error, since PosixPath in pathlib is not implemented in Windows.
I think the issue is storing all paths in yaml files as PosixPaths instead of strings. We could perhaps implement custom yaml loader/serialization to avoid the issue? For now can you please find and replace all PosixPath with Path in the yaml config?