# Compilation problem

**URL:** <https://discourse.julialang.org/t/compilation-problem/125907>\
**Category:** General Usage\
**Tags:** package\
**Created:** [February 14, 2025, 1:44pm UTC](https://discourse.julialang.org/t/compilation-problem/125907 "2025-02-14T13:44:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustave\_Robichon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustave_robichon/32/207522_2.png) [@gustave\_Robichon](https://discourse.julialang.org/u/gustave_Robichon)\
**Post date:** [February 14, 2025, 1:44pm UTC](https://discourse.julialang.org/t/compilation-problem/125907/1 "2025-02-14T13:44:30Z")

</div>

Hello 🙂

I am using the package QuantumOptics. I use the function : timeevolution.master\_h(T, rho0, H, L). I get this compilation error (see below). I think I have updated the packages, and a version changed a bit. When I use my code on a different computer my code is OK and working well.

My question : how do I fix it ? I have tried to change the version of the package DiffEqBase, but it didn’t succeed. I try too to update until a new version fixes this problem, but it’s already been a week since I have this problem. Any other Idea ?

Thanks a lot for any help !

```julia
ERROR: LoadError: UndefVarError: `promote_dual` not defined in `DiffEqBase`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
 [1] _promote_time_and_state(u0::Operator{…}, H::Operator{…}, J::Vector{…}, tspan::StepRange{…})
   @ QuantumOptics.timeevolution ~/.julia/packages/QuantumOptics/ItxYh/src/timeevolution_base.jl:136
 [2] master_h(tspan::StepRange{…}, rho0::Operator{…}, H::Operator{…}, J::Vector{…}; rates::Nothing, Jdagger::Vector{…}, fout::Nothing, kwargs::@Kwargs{})
   @ QuantumOptics.timeevolution ~/.julia/packages/QuantumOptics/ItxYh/src/master.jl:17
 [3] master_h(tspan::StepRange{…}, rho0::Operator{…}, H::Operator{…}, J::Vector{…})
   @ QuantumOptics.timeevolution ~/.julia/packages/QuantumOptics/ItxYh/src/master.jl:8

```

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [February 14, 2025, 3:57pm UTC](https://discourse.julialang.org/t/compilation-problem/125907/2 "2025-02-14T15:57:41Z")

</div>

Can you provide the output of:

```julia
using Pkg
Pkg.status()

```

and the output of

```julia
versioninfo()

```

?

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [February 14, 2025, 4:09pm UTC](https://discourse.julialang.org/t/compilation-problem/125907/3 "2025-02-14T16:09:24Z")

</div>

> [@gustave\_Robichon](#):
>
> When I use my code on a different computer my code is OK and working well.

Also do the `status()` and `versioninfo()` check where the code works for comparison, definitely do not make changes there for now.

---

<div class="post-metadata">

**Author:** ![gustave\_Robichon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustave_robichon/32/207522_2.png) [@gustave\_Robichon](https://discourse.julialang.org/u/gustave_Robichon)\
**Post date:** [February 14, 2025, 4:21pm UTC](https://discourse.julialang.org/t/compilation-problem/125907/4 "2025-02-14T16:21:29Z")

</div>

finally it works, I can not tell why ! I’ve used an environment and an older version of QuantumOptics, and it works even ouf of this new environment ! thanks for the help 🙂 🙂 🙂
