Skip to content

data file issue #2

@yzcj105

Description

@yzcj105

Hi, afternone

I come here from your zhihu post. I've downloaded the data set from baidupan. However, when running @load ("test.jld2") in REPL, I've got an error

julia> @load "test.jld2"
ERROR: LoadError: JLD2.InvalidDataException()
Stacktrace:
 [1] read_obj_start(::JLD2.MmapIO) at /mnt/home//.julia/packages/JLD2/KjBIK/src/object_headers.jl:47
 [2] load_group(::JLD2.JLDFile{JLD2.MmapIO}, ::JLD2.RelOffset) at /mnt/home//.julia/packages/JLD2/KjBIK/src/groups.jl:221
 [3] #jldopen#9(::Bool, ::Bool, ::Function, ::String, ::Bool, ::Bool, ::Bool, ::Type{JLD2.MmapIO}) at /mnt/home//.julia/packages/JLD2/KjBIK/src/JLD2.jl:258
 [4] jldopen at /mnt/home/jchen/.julia/packages/JLD2/KjBIK/src/JLD2.jl:203 [inlined] (repeats 2 times)
 [5] #jldopen#10(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::String, ::String) at /mnt/home//.julia/packages/JLD2/KjBIK/src/JLD2.jl:293
 [6] jldopen at /mnt/home//.julia/packages/JLD2/KjBIK/src/JLD2.jl:288 [inlined] (repeats 2 times)
 [7] @load(::LineNumberNode, ::Module, ::Any, ::Vararg{Any,N} where N) at /mnt/home//.julia/packages/JLD2/KjBIK/src/loadsave.jl:64
in expression starting at REPL[12]:1

Here is my package status

(v1.1) pkg> status
    Status `~/.julia/environments/v1.1/Project.toml`
  [fbb218c0] BSON v0.2.3
  [be33ccc6] CUDAnative v2.2.1
  [3a865a2d] CuArrays v1.1.0
  [31a5f54b] Debugger v0.5.0
  [5789e2e9] FileIO v1.0.7
  [587475ba] Flux v0.8.3
  [916415d5] Images v0.18.0
  [033835bb] JLD2 v0.1.2
  [91a5bcdd] Plots v0.26.0

Best

yzcj105

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions