google-research / FirstOrderLp.jl

Experimental first-order solvers for linear and quadratic programming.
Apache License 2.0
102 stars 19 forks source link

LoadError: ArgumentError: Package SparseArrays does not have SuiteSparse_jll in its dependencies #124

Open TomasOberhuber opened 2 months ago

TomasOberhuber commented 2 months ago

Hi,

I would like to test FirstOrderLp. I have julia version 1.10.4. After executing

julia --project=scripts scripts/solve_qp.jl --help

I get

ERROR: LoadError: ArgumentError: Package SparseArrays does not have SuiteSparse_jll in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
  to ensure all packages in the environment are installed.
- Or, if you have SparseArrays checked out for development and have
  added SuiteSparse_jll as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with SparseArrays
Stacktrace:
 [1] include(x::String)
   @ SparseArrays /usr/share/julia/stdlib/v1.10/SparseArrays/src/SparseArrays.jl:6
 [2] top-level scope
   @ /usr/share/julia/stdlib/v1.10/SparseArrays/src/SparseArrays.jl:77
 [3] top-level scope
   @ stdin:3
in expression starting at /usr/share/julia/stdlib/v1.10/SparseArrays/src/solvers/LibSuiteSparse.jl:1
in expression starting at /usr/share/julia/stdlib/v1.10/SparseArrays/src/SparseArrays.jl:3
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile SparseArrays [2f01184e-e22b-5df5-ae63-d93ebab69eaf] to "/home/oberhuber/.julia/compiled/v1.10/SparseArrays/jl_g8q7SY".
Stacktrace:
 [1] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
   @ FileWatching.Pidfile /usr/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93
 [2] #mkpidlock#6
   @ /usr/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined]
 [3] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
   @ FileWatching.Pidfile /usr/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:111
in expression starting at /home/oberhuber/workspace/FirstOrderLp.jl/scripts/solve_qp.jl:21

Thanks, Tomas.

mlubin commented 2 months ago

Try with Julia 1.6.