"Error building 'Mosek' " in Windows 10

Dear All,

I would deeply appreciate some help in troubleshooting why my MOSEK package installation attempts are failing.
I am using Julia 1.8.5, VSCode and Windows 10 and I am trying to install Mosek.jl .

While running

import Pkg; Pkg.add("Mosek")

I get this:

ERROR: Error building `Mosek`: 
[ Info: Get latest MOSEK version (https://download.mosek.com/stable/10.0/version)
ERROR: LoadError: Failed to get MOSEK version
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] top-level scope
   @ C:\Users\ZachariasPC\.julia\packages\Mosek\5QnPP\deps\build.jl:231
 [3] include(fname::String)
   @ Base.MainInclude .\client.jl:476
 [4] top-level scope
   @ none:5
in expression starting at C:\Users\ZachariasPC\.julia\packages\Mosek\5QnPP\deps\build.jl:151
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Types.jl:67
  [2] (::Pkg.Operations.var"#66#73"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String})()
    @ Pkg.Operations C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1060
  [3] withenv(::Pkg.Operations.var"#66#73"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, ::Pair{String, String}, ::Vararg{Pair{String}})
    @ Base .\env.jl:172
  [4] (::Pkg.Operations.var"#107#112"{String, Bool, Bool, Bool, Pkg.Operations.var"#66#73"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.PackageSpec})()
    @ Pkg.Operations C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1619
  [5] with_temp_env(fn::Pkg.Operations.var"#107#112"{String, Bool, Bool, Bool, Pkg.Operations.var"#66#73"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.PackageSpec}, temp_env::String)
    @ Pkg.Operations C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1493
  [6] (::Pkg.Operations.var"#105#110"{Dict{String, Any}, Bool, Bool, Bool, Pkg.Operations.var"#66#73"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String})(tmp::String)
    @ Pkg.Operations C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1582
  [7] mktempdir(fn::Pkg.Operations.var"#105#110"{Dict{String, Any}, Bool, Bool, Bool, Pkg.Operations.var"#66#73"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String}, parent::String; prefix::String)
    @ Base.Filesystem .\file.jl:764
  [8] mktempdir(fn::Function, parent::String) (repeats 2 times)
    @ Base.Filesystem .\file.jl:760
  [9] 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{String, Any}, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
    @ Pkg.Operations C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1540
 [10] build_versions(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}; verbose::Bool)
    @ Pkg.Operations C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1041
 [11] build_versions
    @ C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:956 [inlined]
 [12] 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\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1286
 [13] 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\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:275
 [14] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:156
 [15] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:145
 [16] #add#27
    @ C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:144 [inlined]
 [17] add
    @ C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:144 [inlined]
 [18] #add#26
    @ C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:143 [inlined]
 [19] add(pkg::String)
    @ Pkg.API C:\Users\ZachariasPC\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:143
 [20] top-level scope
    @ c:\Users\ZachariasPC\Documents\Julia\Testing.jl:66

From what I understand the main error code is “Failed to get MOSEK version” but I don’t know how to resolve this.

Thanks for your time.

What happens if you paste this URL into your web browser? Can you access and download the file?

I don’t have Windows, and I can’t reproduce. Have you tried again? Perhaps it was just a network issue.

It seems like someone else has this problem: Install Mosek v10.0.2 failed · Issue #225 · MOSEK/Mosek.jl · GitHub.

You’ll probably need to wait or the MOSEK devs to take a look.

Hi odow,

Thanks for your reply, I have tried the installation multiple times (including a fresh re-install of Julia) and this error keeps repeating.
Regarding the URL, I can open it and when I do it, my browser auto-downloads a file called “version”. It appears to be a tiny file with the readout of the current version of Mosek: “10.0.43”
It’s possible that this may not be a problem with Julia itself, maybe VSCode either cannot or doesn’t have the correct permissions to open the URL and get the version readout from the Mosek website.