SciML / diffeqpy

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

UndefVarError: NonlinearLeastSquaresProblem not defined in SimpleNonlinearSolve package #130

Closed tristan0x closed 1 year ago

tristan0x commented 1 year ago

I am reporting the issue here since I use DifferentialEquations julia package through Python. Since yesterday, I experience a precompilation issue of SimpleNonlinearSolve when running the following Python function diffeqpy.install()

Stack trace

ERROR: LoadError: LoadError: UndefVarError: NonlinearLeastSquaresProblem not defined
Stacktrace:
  [1] top-level scope
    @ /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/packages/SimpleNonlinearSolve/nusbP/src/raphson.jl:66
  [2] include(mod::Module, _path::String)
    @ Base ./Base.jl:384
  [3] include(x::String)
    @ SimpleNonlinearSolve /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/packages/SimpleNonlinearSolve/nusbP/src/SimpleNonlinearSolve.jl:1
  [4] top-level scope
    @ /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/packages/SimpleNonlinearSolve/nusbP/src/SimpleNonlinearSolve.jl:30
  [5] include
    @ ./Base.jl:384 [inlined]
  [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1235
  [7] top-level scope
    @ none:1
  [8] eval
    @ ./boot.jl:360 [inlined]
  [9] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [10] top-level scope
    @ none:1
in expression starting at /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/packages/SimpleNonlinearSolve/nusbP/src/raphson.jl:66
in expression starting at /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/packages/SimpleNonlinearSolve/nusbP/src/SimpleNonlinearSolve.jl:1
ERROR: LoadError: Failed to precompile SimpleNonlinearSolve [727e6d20-b764-4bd8-a329-72de5adea6c7] to /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/compiled/v1.6/SimpleNonlinearSolve/jl_Y3wc5N.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOStream, internal_stdout::IOStream, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [7] include
    @ ./Base.jl:384 [inlined]
  [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/packages/OrdinaryDiffEq/JJd6g/src/OrdinaryDiffEq.jl:1
ERROR: LoadError: Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/compiled/v1.6/OrdinaryDiffEq/jl_RJBWNl.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOStream, internal_stdout::IOStream, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [7] include
    @ ./Base.jl:384 [inlined]
  [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/packages/StochasticDiffEq/mQ8i9/src/StochasticDiffEq.jl:1
ERROR: LoadError: Failed to precompile StochasticDiffEq [789caeaf-c7a9-5a7d-9973-96adeb23e2a0] to /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/compiled/v1.6/StochasticDiffEq/jl_twZtja.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOStream, internal_stdout::IOStream, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [7] include
    @ ./Base.jl:384 [inlined]
  [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/packages/DifferentialEquations/aKmaf/src/DifferentialEquations.jl:1
  Activating environment at `/gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/environments/diffeqpy/Project.toml`
    Updating registry at `/gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/registries/General`
   Resolving package versions...
  No Changes to `/gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/environments/diffeqpy/Project.toml`
  No Changes to `/gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/environments/diffeqpy/Manifest.toml`
ERROR: LoadError: Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to /gpfs/bbp.cscs.ch/project/proj40/users/tcarel/2023-11-02-multiscale-run/sim4/.julia/compiled/v1.6/DifferentialEquations/jl_PQZyWc.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOStream, internal_stdout::IOStream, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1329
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1043
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:936
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:923
in expression starting at /gpfs/bbp.cscs.ch/ssd/apps/bsd/pulls/2183/stage_applications/install_gcc-12.2.0-skylake/py-diffeqpy-2.3.0-iadrym/lib/python3.10/site-packages/diffeqpy/install.jl:4
Traceback (most recent call last):

I was working well last week. I am not a Julia developer, but it seems related to SimpleNonlinearSolve@0.1.24 released yesterday. I am using julia 1.6.7, and I am not able to pick another one .

Best

ChrisRackauckas commented 1 year ago

There was a release that needed a higher lower bound. The offending release is being yanked, and a new release with proper lower bounds is being put out: https://github.com/JuliaRegistries/General/pull/94886. Thanks for the issue.

tristan0x commented 1 year ago

Issue fixed. Thank you very much for the quick resolution.