Closed judober closed 1 year ago
You can see from the stacktrace that the error is triggered deep down. JLD2 asks julia to open a file and julia then asks the operating system to do this. The operating system returns an error.
I don't think julia / JLD2 can know in general why the operating system fails to open / create a file.
If you think this is a problem of julia, you can try to manually create a file on your computer with that filename. (to test if this is the problem).
[1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
@ Base .\error.jl:176
[2] #systemerror#80
@ .\error.jl:175 [inlined]
[3] systemerror
@ .\error.jl:175 [inlined]
[4] open(fname::String; lock::Bool, read::Bool, write::Bool, create::Bool, truncate::Bool, append::Bool)
@ Base .\iostream.jl:293
You are right. I tried it and it didn't work. Closing this as it seems there can be nothing done on the julia side.
It seems that the filename length (at least on windows) is limited:
I increased the Path Length of Windows, however the error persists.
Is this an internal limitation of JLD2 (or FileIO) or am I doing something wrong? If this can't be fixed I would at least suggest to add a clearer error message.