JuliaIO / JLD.jl

Saving and loading julia variables while preserving native types
MIT License
277 stars 55 forks source link

Can't load SortedDict using JLD. #240

Open 56phil opened 5 years ago

56phil commented 5 years ago

Getting this error when trying to load a file saved using JLD. Is the error legitimate, or am I doing something wrong? The source is located in my repository: https://github.com/56phil/julia0.git

ERROR: LoadError: MethodError: no method matching SortedDict{Int64,Dict,Base.Order.ForwardOrdering}()

Stack trace: [1] convert(::Type{SortedDict{Int64,Dict,Base.Order.ForwardOrdering}}, ::JLD.AssociativeWrapper{Int64,Dict,SortedDict{Int64,Dict,Base.Order.ForwardOrdering}}) at /Users/phil/.julia/packages/JLD/1BoSz/src/JLD.jl:801 [2] readas(::JLD.AssociativeWrapper{Int64,Dict,SortedDict{Int64,Dict,Base.Order.ForwardOrdering}}) at /Users/phil/.julia/packages/JLD/1BoSz/src/JLD.jl:792 [3] read_scalar(::JLD.JldDataset, ::HDF5Datatype, ::Type) at /Users/phil/.julia/packages/JLD/1BoSz/src/JLD.jl:398 [4] read(::JLD.JldDataset) at /Users/phil/.julia/packages/JLD/1BoSz/src/JLD.jl:370 [5] read(::JLD.JldFile, ::String) at /Users/phil/.julia/packages/JLD/1BoSz/src/JLD.jl:346 [6] #39 at ./none:0 [inlined] [7] iterate at ./generator.jl:47 [inlined] [8] collect(::Base.Generator{Array{String,1},getfield(JLD, Symbol("##39#41")){JLD.JldFile}}) at ./array.jl:619 [9] (::getfield(JLD, Symbol("##38#40")))(::JLD.JldFile) at /Users/phil/.julia/packages/JLD/1BoSz/src/JLD.jl:1234 [10] #jldopen#14(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(JLD, Symbol("##38#40")), ::String, ::Vararg{String,N} where N) at /Users/phil/.julia/packages/JLD/1BoSz/src/JLD.jl:246 [11] jldopen at /Users/phil/.julia/packages/JLD/1BoSz/src/JLD.jl:244 [inlined] [12] load at /Users/phil/.julia/packages/JLD/1BoSz/src/JLD.jl:1233 [inlined] [13] #load#13(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::String) at /Users/phil/.julia/packages/FileIO/lt9I0/src/loadsave.jl:118 [14] load at /Users/phil/.julia/packages/FileIO/lt9I0/src/loadsave.jl:118 [inlined] [15] macro expansion at ./util.jl:156 [inlined] [16] main() at /Users/phil/factor/p.jl:110 [17] top-level scope at none:0 [18] include at ./boot.jl:317 [inlined] [19] include_relative(::Module, ::String) at ./loading.jl:1041 [20] include(::Module, ::String) at ./sysimg.jl:29 [21] exec_options(::Base.JLOptions) at ./client.jl:229 [22] _start() at ./client.jl:421