Cannot install Arpack on Windows 10 with Julia 1.7.2

Trying to install Arpack.jl and got an error ERROR: Unable to automatically install 'Arpack'. These issues are killing me :sob:

(@v1.7) pkg> add Arpack
   Resolving package versions...
  Downloaded artifact: Arpack
  Downloaded artifact: Arpack
ERROR: Unable to automatically install 'Arpack' from 'C:\Users\User\.julia\packages\Arpack_jll\zfgpQ\Artifacts.toml'
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] ensure_artifact_installed(name::String, meta::Dict{String, Any}, artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool, 
io::Base.TTY)
    @ Pkg.Artifacts C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\Artifacts.jl:441
  [3] download_artifacts(env::Pkg.Types.EnvCache; platform::Base.BinaryPlatforms.Platform, julia_version::VersionNumber, verbose::Bool, io::Base.TTY)
    @ Pkg.Operations C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:617
  [4] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)  
    @ Pkg.Operations C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1182
  [5] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
    @ Pkg.API C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\API.jl:268
  [6] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\API.jl:149
  [7] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\API.jl:144
  [8] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
    @ Pkg.REPLMode C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\REPLMode\REPLMode.jl:407
  [9] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
    @ Pkg.REPLMode C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\REPLMode\REPLMode.jl:385
 [10] do_cmd
    @ C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\REPLMode\REPLMode.jl:376 [inlined]
 [11] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Pkg.REPLMode C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\REPLMode\REPLMode.jl:549
 [12] #invokelatest#2
    @ .\essentials.jl:716 [inlined]
 [13] invokelatest
    @ .\essentials.jl:714 [inlined]
 [14] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\LineEdit.jl:2493
 [15] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL C:\Users\User\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\REPL\src\REPL.jl:1232
 [16] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL .\task.jl:423

I don’t think it’s worth opening a thread for each of these - you seem to have some network configuration which prevents artifacts from downloading correctly. As @mose said in one of your previous threads, Julia 1.8 (currently available in beta) provides additional information on these failures, have you tried running it?

1 Like

I tried with 1.8. But as these error messages are all Greek to me, I haven’t realized that the root cause was one and the same. In my last package manager issue, you advised me to install 1.7 after which the problem was resolved. And so I didn’t get the impression that it could all be network related.

(@v1.8) pkg> add Plots
┌ Warning: could not download https://pkg.julialang.org/registries
│   exception = getaddrinfo() thread failed to start while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.8\Pkg\src\Registry\Registry.jl:68
    Updating registry at `C:\Users\User\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Resolving package versions...
  Downloaded artifact: LERC
  Downloaded artifact: LERC
ERROR: Unable to automatically download/install artifact 'LERC' from sources listed in 'C:\Users\User\.julia\packages\LERC_jll\1D0hs\Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/2e9a29903fddf79371cd5f82327f70ada670a234
    Error: getaddrinfo() thread failed to start while requesting https://pkg.julialang.org/artifact/2e9a29903fddf79371cd5f82327f70ada670a234
- https://github.com/JuliaBinaryWrappers/LERC_jll.jl/releases/download/LERC-v3.0.0+1/LERC.v3.0.0.x86_64-w64-mingw32-cxx11.tar.gz
    Error: getaddrinfo() thread failed to start while requesting https://github.com/JuliaBinaryWrappers/LERC_jll.jl/releases/download/LERC-v3.0.0+1/LERC.v3.0.0.x86_64-w64-mingw32-cxx11.tar.gz

Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] ensure_artifact_installed(name::String, meta::Dict{String, Any}, artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool, io::Base.TTY)
    @ Pkg.Artifacts C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\Artifacts.jl:468
  [3] download_artifacts(env::Pkg.Types.EnvCache; platform::Base.BinaryPlatforms.Platform, julia_version::VersionNumber, verbose::Bool, io::Base.TTY)
    @ Pkg.Operations C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:641
  [4] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1258
  [5] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
    @ Pkg.API C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\API.jl:275
  [6] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\API.jl:156
  [7] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\API.jl:146
  [8] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
    @ Pkg.REPLMode C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:409
  [9] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
    @ Pkg.REPLMode C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:387
 [10] do_cmd
    @ C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:378 [inlined]
 [11] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Pkg.REPLMode C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:551
 [12] #invokelatest#2
    @ .\essentials.jl:729 [inlined]
 [13] invokelatest
    @ .\essentials.jl:727 [inlined]
 [14] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\REPL\src\LineEdit.jl:2509
 [15] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL C:\Users\User\AppData\Local\Programs\Julia-1.8.0-beta1\share\julia\stdlib\v1.8\REPL\src\REPL.jl:1248
 [16] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL .\task.jl:476

That’s a fair point, the error messages (pre 1.8, as you see now!) weren’t ideal I guess, and I don’t know enough about the Artifact system to figure out where it’s going wrong.

In general though, you can try to go through the stacktrace and strip out unnecessary type and line information to get an idea of whether errors are the same, taking your three posts for example:

ERROR: Unable to automatically install 'Libtiff'
Stacktrace:
  [1] error
  [2] ensure_artifact_installed
  [3] ensure_all_artifacts_installed
  [4] download_artifacts


  ERROR: Unable to automatically install 'LERC'
Stacktrace:
  [1] error
  [2] ensure_artifact_installed
  [3] download_artifacts

  ERROR: Unable to automatically install 'Arpack' 
Stacktrace:
  [1] error
  [2] ensure_artifact_installed
  [3] download_artifacts

I have now tried with and without my firewall activated and over both my home wifi connection and by sharing the mobile connection from my phone. All to no avail—I get the same error message regardless of what I do.

I forgot the first rule of troubleshooting: First, reboot. :rofl: