Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@everywhere using Module is failing #26805

Closed
ghost opened this issue Apr 14, 2018 · 1 comment · Fixed by #26813
Closed

@everywhere using Module is failing #26805

ghost opened this issue Apr 14, 2018 · 1 comment · Fixed by #26813
Assignees
Labels
modules parallelism Parallel or distributed computation

Comments

@ghost
Copy link

ghost commented Apr 14, 2018

[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.

@ghost
Copy link
Author

ghost commented Apr 14, 2018

Doesn't happen if the module is loaded locally first:

[joe@z1 ~]$ 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> using Colors

julia> @everywhere using Colors

julia> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modules parallelism Parallel or distributed computation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants