@everywhere include_string(Main, $(read("count_heads.jl", String)), "count_heads.jl")
ERROR: MethodError: Cannot `convert` an object of type Type{String} to an object of type Array{UInt8,1}
This may have arisen from a call to the constructor Array{UInt8,1}(...),
since type constructors fall back to convert methods.
Looking at just the read("count_heads.jl", String) function I get the source of the error (I think).
I think read("count_heads.jl", String) is valid only for Julia v0.7.
For earlier versions, you can either use readstring("count_heads.jl"), which is deprecated in v0.7.
Or to use the new syntax, using Compat; read("count_heads.jl", String)
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0 (2017-06-19 13:05 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-w64-mingw32
Julia-0.6.0> @everywhere include_string(Main, $(read("count_heads.jl", String)), "count_heads.jl")
ERROR: MethodError: Cannot `convert` an object of type Type{String} to an object of type Array{UInt8,1}
This may have arisen from a call to the constructor Array{UInt8,1}(...),
since type constructors fall back to convert methods.
read(::IOStream, ::Type{T} where T) at .\io.jl:528
open(::Base.##190#191{Tuple{DataType}}, ::String) at .\iostream.jl:152
(::##1#3)() at .\distributed\macros.jl:102
Stacktrace:
[1] sync_end() at .\task.jl:287
[2] macro expansion at .\distributed\macros.jl:112 [inlined]
[3] anonymous at .\<missing>:?
Perhaps a difference in Windows and Mac?
You don’t have using Compat in your .juliarc.jl? (can see if Compat is loaded by running whos())