Skip to content

@everywhere using Module is failing #26805

@ghost

Description

[joe@z1 julia]$ ./julia -p 2
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-DEV.4881 (2018-04-13 22:09 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit b6d81e3 (0 days old master)
|__/                   |  x86_64-redhat-linux

julia> using Distributed

julia> @everywhere using Colors
┌ Warning: Replacing module `Colors`
└ @ Base loading.jl:894
┌ Warning: Replacing module `Colors`
└ @ Base loading.jl:894

julia> @everywhere using Colors
      From worker 2:	WARNING: using Colors.Colors in module Main conflicts with an existing identifier.
      From worker 3:	WARNING: using Colors.Colors in module Main conflicts with an existing identifier.ERROR: 
On worker 2:
importing Colors into Main conflicts with an existing identifier
eval at ./boot.jl:317
#124 at /home/src/julia.7/usr/share/julia/site/v0.7/Distributed/src/process_messages.jl:276
run_work_thunk at /home/src/julia.7/usr/share/julia/site/v0.7/Distributed/src/process_messages.jl:56
run_work_thunk at /home/src/julia.7/usr/share/julia/site/v0.7/Distributed/src/process_messages.jl:65
#110 at ./event.jl:92
#remotecall_wait#162(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Distributed.Worker, ::Module, ::Vararg{Any,N} where N) at /home/src/julia.7/usr/share/julia/site/v0.7/Distributed/src/remotecall.jl:407
remotecall_wait(::Function, ::Distributed.Worker, ::Module, ::Vararg{Any,N} where N) at /home/src/julia.7/usr/share/julia/site/v0.7/Distributed/src/remotecall.jl:398
#remotecall_wait#165(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Int64, ::Module, ::Vararg{Any,N} where N) at /home/src/julia.7/usr/share/julia/site/v0.7/Distributed/src/remotecall.jl:419
remotecall_wait(::Function, ::Int64, ::Module, ::Vararg{Any,N} where N) at /home/src/julia.7/usr/share/julia/site/v0.7/Distributed/src/remotecall.jl:419
(::getfield(Distributed, Symbol("##171#173")){Module,Expr})() at ./task.jl:343

...and 1 more exception(s).

Stacktrace:
 [1] sync_end() at ./task.jl:295
 [2] macro expansion at ./task.jl:311 [inlined]
 [3] remotecall_eval(::Module, ::Array{Int64,1}, ::Expr) at /home/src/julia.7/usr/share/julia/site/v0.7/Distributed/src/macros.jl:192
 [4] top-level scope at /home/src/julia.7/usr/share/julia/site/v0.7/Distributed/src/macros.jl:176

Similar to #19187 , but worse that it fails when using is encountered twice.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions