QuantumInformation.jl icon indicating copy to clipboard operation
QuantumInformation.jl copied to clipboard

SCS not properly installed

Open shekhardevanshu opened this issue 1 year ago • 0 comments

I am trying to add QuantumInformation.jl package in julia-1.10.3. But I am getting the following error:

ERROR: The following 1 direct dependency failed to precompile:

SCS [c946c3f1-0d1f-5ce8-9dea-7daa1f7e2d13]

Failed to precompile SCS [c946c3f1-0d1f-5ce8-9dea-7daa1f7e2d13] to "/home/devanshu/.julia/compiled/v1.10/SCS/jl_hqLW5o".
ERROR: LoadError: SCS not properly installed. Please run Pkg.build("SCS") and restart julia
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] top-level scope
   @ ~/.julia/packages/SCS/28Svy/src/SCS.jl:6
 [3] include
   @ ./Base.jl:495 [inlined]
 [4] 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, UInt128}}, source::Nothing)
   @ Base ./loading.jl:2222
 [5] top-level scope
   @ stdin:3
in expression starting at /home/devanshu/.julia/packages/SCS/28Svy/src/SCS.jl:1
in expression starting at stdin:
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70
  [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{…}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, _from_loading::Bool, kwargs::@Kwargs{…})
    @ Pkg.API ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:1659
  [3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{_from_loading::Bool})
    @ Pkg.API ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
  [4] precompile
    @ ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined]
  [5] #precompile#114
    @ ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:146 [inlined]
  [6] #invokelatest#2
    @ ./essentials.jl:894 [inlined]
  [7] invokelatest
    @ ./essentials.jl:889 [inlined]
  [8] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1963
  [9] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1812
 [10] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [11] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [12] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1803
 [13] macro expansion
    @ ./loading.jl:1790 [inlined]
 [14] macro expansion
    @ ./lock.jl:267 [inlined]
 [15] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1753
 [16] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [17] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [18] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1746
Some type information was truncated. Use `show(err)` to see complete types.

And when I do Pkg.build("SCS") I get the following


Pkg.build("SCS")
    Building SCS → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/936d43feaceae3290472ddf800b496be094d727b/build.log`
ERROR: Error building `SCS`: 
ERROR: LoadError: LibraryProduct(nothing, ["libscsindir"], :indirect, "Prefix(/home/devanshu/.julia/packages/SCS/28Svy/deps/usr)") is not satisfied, cannot generate deps.jl!
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] write_deps_file(depsjl_path::String, products::Vector{LibraryProduct}; verbose::Bool, isolate::Bool)
   @ BinaryProvider ~/.julia/packages/BinaryProvider/U2dKK/src/Products.jl:419
 [3] top-level scope
   @ ~/.julia/packages/SCS/28Svy/deps/build.jl:94
 [4] include(fname::String)
   @ Base.MainInclude ./client.jl:489
 [5] top-level scope
   @ none:5
in expression starting at /home/devanshu/.julia/packages/SCS/28Svy/deps/build.jl:94
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70
  [2] (::Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String})()
    @ Pkg.Operations ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1157
  [3] withenv(::Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, ::Pair{String, String}, ::Vararg{Pair{…}})
    @ Base ./env.jl:257
  [4] (::Pkg.Operations.var"#117#122"{String, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{…}, Pkg.Types.PackageSpec})()
    @ Pkg.Operations ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1825
  [5] with_temp_env(fn::Pkg.Operations.var"#117#122"{…}, temp_env::String)
    @ Pkg.Operations ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1706
  [6] (::Pkg.Operations.var"#115#120"{…})(tmp::String)
    @ Pkg.Operations ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1795
  [7] mktempdir(fn::Pkg.Operations.var"#115#120"{…}, parent::String; prefix::String)
    @ Base.Filesystem ./file.jl:766
  [8] mktempdir(fn::Function, parent::String)
    @ Base.Filesystem ./file.jl:762
  [9] mktempdir
    @ ./file.jl:762 [inlined]
 [10] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project; preferences::Dict{…}, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
    @ Pkg.Operations ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1753
 [11] build_versions(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}; verbose::Bool)
    @ Pkg.Operations ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1138
 [12] build_versions
    @ ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1056 [inlined]
 [13] build(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}, verbose::Bool)
    @ Pkg.Operations ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:996
 [14] build(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; verbose::Bool, kwargs::@Kwargs{io::Base.TTY})
    @ Pkg.API ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:1056
 [15] build(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{})
    @ Pkg.API ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
 [16] build(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:148
 [17] build
    @ ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined]
 [18] build(pkg::String)
    @ Pkg.API ~/julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:146
 [19] top-level scope
    @ REPL[4]:1
Some type information was truncated. Use `show(err)` to see complete types.

Everything was working fine when I was using julia-1.9.0, but when I tried to install the latest version, I ran into this issue. As explained here, the new version of QuantumInformation.jl is not supported in julia-1.10.3 so I reverted to v1.9.

shekhardevanshu avatar May 06 '24 06:05 shekhardevanshu