SciML / diffeqpy

Solving differential equations in Python using DifferentialEquations.jl and the SciML Scientific Machine Learning organization
MIT License
531 stars 39 forks source link

could not load library "libopenlibm" #88

Closed zmoon closed 11 months ago

zmoon commented 3 years ago
    sol = de.solve(prob, solver)
RuntimeError: <PyCall.jlwrap (in a Julia function called from Python)
JULIA: could not load library "libopenlibm"
The specified module could not be found.
Stacktrace:
 [1] log10 at .\math.jl:566 [inlined]
 [2] ode_determine_initdt(::Array{Float64,2}, ::Float64, ::Float64, ::Float64, ::Float64, ::Float64, ::typeof(DiffEqBase.ODE_DEFAULT_NORM), ::ODEProblem{Array{Float64,2},Tuple{Float64,Float64},true,TendParams,ODEFunction{true,typeof(tend!),LinearAlgebra.UniformScaling{Bool},...
...

I couldn't find info about how to fix this. I don't have this issue when Python isn't involved (using DifferentialEquations.jl in Julia normally). Let me know if you want to me to provide more info.

ChrisRackauckas commented 3 years ago

Is this using the standard generic binary?

zmoon commented 3 years ago

Yes, though I also tried using a sysimage for DifferentialEquations that I created with PackageCompiler and got the same error.

This is on Windows btw. I did get it to work on Linux (WSL) on the same machine after doing an --enable-shared Python build.

ChrisRackauckas commented 3 years ago

This might need to be an issue in pyjulia.

ChrisRackauckas commented 11 months ago

Fixed by PythonCall