I've recently encountered problems using pmap on a function that returns a
DataStructures.OrderedDict.
import DataStructures
@everywhere function f(x)
return DataStructures.OrderedDict(zip(["x"], [x]))
end
pmap(f, [1, 2])
If the above code is run in a "julia -p 2" environment, it produce a
cascade of errors that seem to begin with
ERROR: MethodError: `write` has no method matching
write(::SerializationState{TCPSocket}, ::Int32)
In the original context that this example was trying to replicate, the
error was
ERROR: MethodError: `read` has no method matching
read(::SerializationState{TCPSocket}, ::Type{Int32})
Does anyone have advice on how to resolve this? Should these methods exist
in base julia? Am I doing something wrong?
Thanks for your help!
Dan