sxs-collaboration / sxs

Python code for manipulating data from the SXS collaboration
MIT License
26 stars 18 forks source link

Windows path error #17

Closed moble closed 4 years ago

moble commented 4 years ago

A user reported this error on windows:

I got an error when loading the metadata:

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'SXS:BBH:0123\\Lev\\metadata.json'

I had thought it might be something to do with the direction of the slashes, but I now realize it's the colons — they're apparently not legal on Windows. It looks like I had run across this error previously, but had not recognized it here. I guess I'll have to write some wrapper functions any time the cache is accessed (which I guess is just in sxs.load and download) to rewrite those on Windows.

While I'm at it, it would be nice if I could look into failures like this one. I think the problem may be that I convert things to pathlib.Path objects, and it looks like they may be expanding to full user-space paths somewhere.

moble commented 4 years ago

Closed by #23