julia> using Distributed
julia> addprocs(4)
4-element Array{Int64,1}:
2
3
4
5
julia> using Distributed
julia> @everywhere using DistributedArrays
ERROR: ArgumentError: Package DistributedArrays not found in current path:
- Run `import Pkg; Pkg.add("DistributedArrays")` to install the DistributedArrays package.
Stacktrace:
[1] require(::Module, ::Symbol) at ./loading.jl:885
[2] top-level scope at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.4/Distributed/src/macros.jl:199
I do not have DistributedArrays installed. And if I want to use it @everywhere, the Stacktrace[2] will report a place:
Since the error is from v1.4/Distributed/src/macros.jl, I think it is a problem of my Julia v1.4 distribution. I am not sure what a buildbot/worker is. One thing I know is that before this issue was fixed, editing or lessing some code in standard libraries will also throw an error from a path /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/InteractiveUtils/src/editless.jl, which is not a real path on users’ computers. You can use Julia v1.2.0 to edit some code in a standard library to see this. So I am suggesting there might be a leftover bug that the path was not entirely fixed.
julia> edit(parse(IPv4, "127.0.0.1"))
ERROR: object is not callable
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] functionloc at ./reflection.jl:1150 [inlined]
[3] edit(::IPv4) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.2/InteractiveUtils/src/editless.jl:99
[4] top-level scope at REPL[3]:1
julia> versioninfo()
Julia Version 1.2.0
Commit c6da87ff4b (2019-08-20 00:03 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)
Environment:
JULIA_NUM_THREADS = 12