SciML / DifferentialEquations.jl

Multi-language suite for high-performance solvers of differential equations and scientific machine learning (SciML) components. Ordinary differential equations (ODEs), stochastic differential equations (SDEs), delay differential equations (DDEs), differential-algebraic equations (DAEs), and more in Julia.
https://docs.sciml.ai/DiffEqDocs/stable/
Other
2.85k stars 226 forks source link

Method Error after package update #659

Closed JulesBlubb closed 4 years ago

JulesBlubb commented 4 years ago

Hi, I am getting an error after updating Differential Equations package. It says: no method matching iterate(::DataStructures.BinaryHeap{Float64,DataStructures.LessThan)

My example code is:


using DifferentialEquations

function ODESolver(a)
    p = a
    function lotka_volterra(du,u,p,t)
        x, y = u
        du[1] = dx = 1.0*x^a - 1.0*x*y
        du[2] = dy = -2.0*y + 1.0*x*y
    end
    u0 = [1.0,1.0]
    tspan = (0.0,10.0)
    prob = ODEProblem(lotka_volterra,u0,tspan,p)
    sol = solve(prob)
    return(sol)
end

function comb_a()
        for y in 1:3
            a = y
            dat = ODESolver(a)
        end
end

comb_a()

It worked before the update without problems. I hope you can help me. Thanks a lot.

MMHoogesteger commented 4 years ago

After struggling with this for a day or two and not progressing, nor finding any issues about it, I just decided to post about this myself: https://github.com/SciML/DiffEqBase.jl/issues/575#issue-687552430 Now I see yours. Maybe one of them can be closed :)

ChrisRackauckas commented 4 years ago

@oxinabox @DhairyaLGandhi @maleadt

ChrisRackauckas commented 4 years ago

The issue is that some packages in the ecosystem are holding back DataStructures.jl v0.18. @devmotion has been fixing this up, but it's all of the packages outside of SciML that need to go update so we need to go hound and ping everyone until they fix their stuff.

devmotion commented 4 years ago

The compatibility issue should be fixed by https://github.com/SciML/DiffEqBase.jl/pull/576 and https://github.com/JuliaRegistries/General/pull/20415#event-3701760120 and (from our side at least).