You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Distributed
@everywhere using JLD2
@everywhere using FileIO
save("example.jld2", Dict("hello" => "world", "foo" => :bar))
load("example.jld2")
I have the following error, which arises when executing the last line:
MethodError: Cannot convert an object of type Type{Future} to an object of type Module
Closest candidates are:
convert(::Type{T}, !Matched::T) where T at essentials.jl:170
Stacktrace:
[1] handle_error(::MethodError, ::File{DataFormat{:JLD2}}) at /Users/jvaes/.julia/packages/FileIO/JAtC1/src/error_handling.jl:80
[2] handle_exceptions(::Array{Any,1}, ::String) at /Users/jvaes/.julia/packages/FileIO/JAtC1/src/error_handling.jl:75
[3] load(::File{DataFormat{:JLD2}}; options::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/jvaes/.julia/packages/FileIO/JAtC1/src/loadsave.jl:193
[4] load(::File{DataFormat{:JLD2}}) at /Users/jvaes/.julia/packages/FileIO/JAtC1/src/loadsave.jl:172
[5] load(::String; options::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/jvaes/.julia/packages/FileIO/JAtC1/src/loadsave.jl:118
[6] load(::String) at /Users/jvaes/.julia/packages/FileIO/JAtC1/src/loadsave.jl:118
[7] top-level scope at In[1]:5
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered:
Alright, I believe that this is now fixed in JLD2 version 0.1.8.
I am closing this issue.
If you encounter this bug again on JLD2 version 0.1.8 or greater, please comment on this issue and I will reopen it. Alternatively, you can open a new issue.
Hi all,
The issue I have is the following: when I run the following lines, which is the example given the documentation of JLD2, everything is fine:
However, when using the Distributed package, i.e.
I have the following error, which arises when executing the last line:
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: