I am new to Julia and am slowly trying to convert Matlab code. My current problem is that I cannot run distributed code. I have searched and found posts suggesting the use of @everywhere and Pkg.activate(“.”) but I just cannot get it to work. I get the error:
LoadError: On worker 2: ArgumentError: Package Formatting not found in current path: - Run import Pkg; Pkg.add("Formatting") to install the Formatting package.
I use the JuliaPro distribution (Juno, Julia 1.0.3).
using Distributed
addprocs(3)
using Formatting
@everywhere using Pkg;
@everywhere Pkg.activate(".")
@everywhere using Formatting
@sync @distributed for j=0:3
#for j=0:3
s=sprintf1("%.5e",j)
print(s)
end
My reply was not intended as reproof, simply as a clarification. It is a packaged version of Julia with some tweaks from a company that has some people on this forum, but since most people here use plain vanilla Julia it is hard to give help for that product.
This has been fixed in JuliaPro 1.0.5-1. The fix hasn’t yet reached the 1.2 version yet, but that should happen soon.
It is fine to ask questions about JuliaPro here, but be aware that it may be drowned out by the volume. Direct support can be obtained by emailing juliapro@juliacomputing.com