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

Error during callback: MLUtils did not define the expected module MLUtils`, #152

Open
luboshanus opened this issue Mar 23, 2023 · 1 comment

Comments

@luboshanus
Copy link

Hi,
I'm getting this error when loading my package/scripts on linux server using Distributed with multiple cores.

I don't understand why is it happening: check for typos in package module name?
I don't see any reference to my code = my mistake.

Thanks for help.

┌ Error: Error during package callback
│   exception =1-element ExceptionStack:
│    On worker 2:
│    package `MLUtils` did not define the expected module `MLUtils`, check for typos in package module name
│    Stacktrace:
│      [1] error
│        @ ./error.jl:35
│      [2] _require_prelocked
│        @ ./loading.jl:1202
│      [3] macro expansion
│        @ ./lock.jl:223 [inlined]
│      [4] require
│        @ ./loading.jl:1195
│      [5] #2
│        @ /usr/pkgs/..julia-1.8.2/share/julia/stdlib/v1.8/Distributed/src/Distributed.jl:80
│      [6] #invokelatest#2
│        @ ./essentials.jl:729 [inlined]
│      [7] invokelatest
│        @ ./essentials.jl:726
│      [8] #114
│        @ /usr/pkgs/..julia-1.8.2/share/julia/stdlib/v1.8/Distributed/src/process_messages.jl:301
│      [9] run_work_thunk
│        @ /usr/pkgs/..julia-1.8.2/share/julia/stdlib/v1.8/Distributed/src/process_messages.jl:70
│     [10] run_work_thunk
│        @ /usr/pkgs/..julia-1.8.2/share/julia/stdlib/v1.8/Distributed/src/process_messages.jl:79
│     [11] #100
│        @ ./task.jl:484
│    Stacktrace:
│      [1] sync_end(c::Channel{Any})
│        @ Base ./task.jl:436
│      [2] macro expansion
│        @ ./task.jl:455 [inlined]
│      [3] _require_callback(mod::Base.PkgId)
│        @ Distributed /usr/pkgs/..julia-1.8.2/share/julia/stdlib/v1.8/Distributed/src/Distributed.jl:77
│      [4] #invokelatest#2
│        @ ./essentials.jl:729 [inlined]
│      [5] invokelatest
│        @ ./essentials.jl:726 [inlined]
│      [6] run_package_callbacks(modkey::Base.PkgId)
│        @ Base ./loading.jl:869
│      [7] _require_prelocked(uuidkey::Base.PkgId)
│        @ Base ./loading.jl:1206
│      [8] macro expansion
│        @ ./loading.jl:1180 [inlined]
│      [9] macro expansion
│        @ ./lock.jl:223 [inlined]
│     [10] require(into::Module, mod::Symbol)
│        @ Base ./loading.jl:1144
│     [11] include(fname::String)
│        @ Base.MainInclude ./client.jl:476
│     [12] top-level scope
│        @ none:1
│     [13] eval
│        @ ./boot.jl:368 [inlined]
│     [14] (::Distributed.var"#172#174"{Module, Expr})()
│        @ Distributed ./task.jl:484
└ @ Base loading.jl:874

Version info:

julia> versioninfo()
Julia Version 1.8.2
Commit 36034abf260 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 128 × AMD Ryzen Threadripper 3990X 64-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, znver2)
  Threads: 1 on 128 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 
@ToucheSir
Copy link
Contributor

This could really use a MWE. Without code I'm not sure an answer will be forthcoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants