Compilation problem

Hello :slight_smile:

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 !

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

Can you provide the output of:

using Pkg
Pkg.status()

and the output of

versioninfo()

?

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

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 :slight_smile: :slight_smile: :slight_smile: