Getting "UndefVarError: N0f8 not defined" error using @distributed

using Distributed
@everywhere using Colors;

@sync @distributed for i = 1:10
zeros(RGB{N0f8}, 10, 10);
end

I’m having error running this code, why my workers don’t see the Colors module?

What is N0f8?

julia> using Colors

julia> RGB{N0f8}
ERROR: UndefVarError: N0f8 not defined
Stacktrace:
 [1] top-level scope at REPL[4]:1
2 Likes

It came out that RGB without {N0f8} is enough and as I understand it needs ColorVectorSpace module to be used everywhere, and don’t forget to add workers via addprocs(4) before @everywhere using …
My problem is solved now.