Error sending packages to other workers (parallelization)


#1

Hi,
In previous versions of julia I used to run

using Distributed
addprocs(3)
@everywhere using Distributions

where Distributions is just one example of a package. Now I get this error

On worker 2:
ArgumentError: Package Distributions not found in current path:

  • Run import Pkg; Pkg.add("Distributions") to install the Distributions package.

How can I send packages to other workers in Juia 1.?

Thank you


#2

Can’t reproduce:

julia> using Distributed

julia> addprocs(3)
3-element Array{Int64,1}:
 2
 3
 4

julia> @everywhere using Distributions

julia> remotecall_fetch(rand, 2, Normal(5,5))
8.680947219352166

julia> versioninfo()
Julia Version 1.0.3
Commit 099e826241 (2018-12-18 01:34 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)

What does using Distributions return if you try without @everywhere?