-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AstroIO required when it shouldn't be #350
Comments
We'd need a reproducible test case to debug this. Does it work when you just load that specific file? If so, can you share it? |
Yes, I can: https://www87.zippyshare.com/v/NS6wRS5q/file.html When I use @load "/home/u0128861/Desktop/storage-and-LOLE/results/monte_carlo/default_nP=1/mc_year_1016.jld2"
ERROR: LoadError: ArgumentError: "/home/u0128861/Desktop/storage-and-LOLE/results/monte_carlo/default_nP=1/mc_year_2000.jld2" is not a JLD2 file If I do Error encountered while load FileIO.File{FileIO.DataFormat{:Gadget2}, String}("/home/u0128861/Desktop/storage-and-LOLE/results/monte_carlo/default_nP=1/mc_year_2000.jld2").
Fatal error:
ERROR: ArgumentError: Package AstroIO [c85a633c-0c3f-44a2-bffe-7f9d0681b3e7] is required but does not seem to be installed:
- Run `Pkg.instantiate()` to install all recorded dependencies. I presume my file is corrupted but the error from |
It's definitely not a JLD file: julia> f = File{format"JLD2"}("mc_year_1016.jld2")
File{DataFormat{:JLD2}, String}("mc_year_1016.jld2")
julia> load(f)
[ Info: Precompiling JLD2 [033835bb-8acc-5ee8-8aae-3f567f8a3819]
Error encountered while load File{DataFormat{:JLD2}, String}("mc_year_1016.jld2").
Fatal error:
ERROR: ArgumentError: "/tmp/fileio/mc_year_1016.jld2" is not a JLD2 file
Stacktrace:
[1] verify_file_header(f::JLD2.JLDFile{JLD2.MmapIO})
@ JLD2 ~/.julia/packages/JLD2/15Kr7/src/file_header.jl:26
[2] jldopen(fname::String, wr::Bool, create::Bool, truncate::Bool, iotype::Type{JLD2.MmapIO}; fallback::Type{IOStream}, compress::Bool, mmaparrays::Bool)
@ JLD2 ~/.julia/packages/JLD2/15Kr7/src/JLD2.jl:301
[...] Clearly it's corrupted so there is no hope of reading it that way you intended. But it would be good if it simply said "file not recognized" rather than picking something essentially random. |
Thanks! I'm curious as to how it got so corrupted, also since I was getting the same error with all the files which were created on our cluster (which sounds very annoying to debug). |
Probably fix JuliaIO#350
I load a lot (~10,000) JLD2 files using
collect_results
from DrWatson.jl. For a couple of files it's fine, but for the ~10,000 that I just mentioned I get the error thatAstrioIO
is required. This strikes me as very strange, since it's a rather obscure package which I definitely don't need to load a JLD2 file.Stacktrace:
The text was updated successfully, but these errors were encountered: