# UnPack does not work in DrWatson on a different machine

**URL:** <https://discourse.julialang.org/t/unpack-does-not-work-in-drwatson-on-a-different-machine/56239>\
**Category:** New to Julia\
**Tags:** question, macros\
**Created:** [March 1, 2021, 9:50am UTC](https://discourse.julialang.org/t/unpack-does-not-work-in-drwatson-on-a-different-machine/56239 "2021-03-01T09:50:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [March 1, 2021, 9:50am UTC](https://discourse.julialang.org/t/unpack-does-not-work-in-drwatson-on-a-different-machine/56239/1 "2021-03-01T09:50:44Z")

</div>

I am using `DrWatson` to run simulations.  
I wrote everything on my machine and now I am trying to run it on a cluster.  
I have copied the Project folder and activated and instantiated the Project on the new machine.  
However, I run into an annoying problem.  
I have a function to actually run the simulation like they propose on the doc

```julia
function makesim(d::Dict)
    @unpack a, b, v, method = d
    r, y = fakesim(a, b, v, method)
    fulld = copy(d)
    fulld[:r] = r
    fulld[:y] = y
    return fulld
end

```

The problem is that the `@unpack` macro does not work on the other machine.  
I tried to simply use it on the `REPL` and it works fine. So I can’t understand what is the problem when using it in the simulation script.

This is the error I get

```julia
ERROR: LoadError: LoadError: LoadError: UndefVarError: @unpack not defined
Stacktrace:
 [1] top-level scope
 [2] #macroexpand#36 at ./expr.jl:108 [inlined]
 [3] macroexpand at ./expr.jl:107 [inlined]
 [4] docm(::LineNumberNode, ::Module, ::Any, ::Any, ::Bool) at ./docs/Docs.jl:521 (repeats 2 times)
 [5] @doc(::LineNumberNode, ::Module, ::String, ::Vararg{Any,N} where N) at ./boot.jl:464
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] exec_options(::Base.JLOptions) at ./client.jl:296
 [9] _start() at ./client.jl:506

```

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 1, 2021, 12:47pm UTC](https://discourse.julialang.org/t/unpack-does-not-work-in-drwatson-on-a-different-machine/56239/2 "2021-03-01T12:47:52Z")

</div>

First thing I would check is that

[https://github.com/mauro3/UnPack.jl](https://github.com/mauro3/UnPack.jl)

is installed, and you are `using` it.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [March 1, 2021, 3:32pm UTC](https://discourse.julialang.org/t/unpack-does-not-work-in-drwatson-on-a-different-machine/56239/3 "2021-03-01T15:32:00Z")

</div>

I was thinking that `DrWatson` was including it for me. That is how it was working on my machine.  
But I ended up installing it independently on the second machine, and then `using` it, and now it works fine.
