Hi,
I’m trying to add Plots and I’m getting this error message:
│ Install package?
│ (@v1.7 ) pkg> add Plots
└ (y/n) [y]: y
Resolving package versions…
Downloaded artifact: libvorbis
Downloaded artifact: libvorbis
ERROR: Unable to automatically install ‘libvorbis’ from ‘C:\Users\davidfr.julia\packages\libvorbis_jll\F1e3O\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\davidfr\AppData\Local\Programs\Julia-1.7.3\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\davidfr\AppData\Local\Programs\Julia-1.7.3\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\davidfr\AppData\Local\Programs\Julia-1.7.3\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\davidfr\AppData\Local\Programs\Julia-1.7.3\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\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:149
[7] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:144
[8] #add #27
@ C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:142 [inlined]
[9] add
@ C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:142 [inlined]
[10] try_prompt_pkg_add(pkgs::Vector{Symbol})
@ Pkg.REPLMode C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\REPLMode\REPLMode.jl:710
[11] #invokelatest #2
@ .\essentials.jl:716 [inlined]
[12] invokelatest
@ .\essentials.jl:714 [inlined]
[13] check_for_missing_packages_and_run_hooks(ast::Any)
@ REPL C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\REPL\src\REPL.jl:175
[14] eval_user_input(ast::Any, backend::REPL.REPLBackend)
@ REPL C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\REPL\src\REPL.jl:145
[15] repl_backend_loop(backend::REPL.REPLBackend)
@ REPL C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\REPL\src\REPL.jl:246
[16] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
@ REPL C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\REPL\src\REPL.jl:231
[17] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
@ REPL C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\REPL\src\REPL.jl:364
[18] run_repl(repl::REPL.AbstractREPL, consumer::Any)
@ REPL C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\REPL\src\REPL.jl:351
[19] (::Base.var"#936 #938"{Bool, Bool, Bool})(REPL::Module)
@ Base .\client.jl:394
[20] #invokelatest #2
@ .\essentials.jl:716 [inlined]
[21] invokelatest
@ .\essentials.jl:714 [inlined]
[22] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
@ Base .\client.jl:379
[23] exec_options(opts::Base.JLOptions)
@ Base .\client.jl:309
[24] _start()
@ Base .\client.jl:495
julia>
I can’t really tell what this is saying? Is it saying it can’t make some type of connection to a repo or something?
Thanks for any guidance you can give!
acxz
July 8, 2022, 4:34pm
2
The error is saying that it is failing to install a dependency of Plots, libvorbis. Maybe libvorbis itself was not properly compiled or needs to be recompiled.
Maybe you can try removing the .julia
directory and trying to install it again?
1 Like
Thanks, @acxz
Still getting an error, however:
Downloaded artifact: PCRE
Downloaded artifact: Libiconv
Downloaded artifact: LZO
Downloaded artifact: Libffi
Downloaded artifact: Glib
Downloaded artifact: libvorbis
Downloaded artifact: libvorbis
ERROR: Unable to automatically install ‘libvorbis’ from ‘C:\Users\davidfr.julia\packages\libvorbis_jll\F1e3O\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\davidfr\AppData\Local\Programs\Julia-1.7.3\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\davidfr\AppData\Local\Programs\Julia-1.7.3\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\davidfr\AppData\Local\Programs\Julia-1.7.3\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\davidfr\AppData\Local\Programs\Julia-1.7.3\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\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:149
[7] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:144
[8] #add #27
@ C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:142 [inlined]
[9] add
@ C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:142 [inlined]
[10] #add #26
@ C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:141 [inlined]
[11] add(pkg::String)
@ Pkg.API C:\Users\davidfr\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:141
[12] top-level scope
@ REPL[2]:1
julia>
acxz
July 8, 2022, 4:56pm
4
Can you post the output of add libvorbis_jll
?
If you could use codeblocks that would help a lot. (triple backticks before and after)
1 Like
Unfortunately Julia v1.7 doesn’t show a proper message about why the file can’t be downloaded (likely some sort of network misconfiguration, are you behind a proxy/firewall?). This has been addressed in Julia v1.8. Would you be able to try that out ? Probably, it won’t solve your issue, but it should provide more useful error messages.
1 Like
Ahh!! Much better! At least I know now!
Is there a way to install this dependency manually?
julia> using Plots
│ Package Plots not found, but a package named Plots is available from a registry.
│ Install package?
│ (@v1.8 ) pkg> add Plots
└ (y/n/o) [y]: y
Updating registry at C:\Users\davidfr\.julia\registries\General.toml
Resolving package versions…
Downloaded artifact: libvorbis
Downloaded artifact: libvorbis
ERROR: Unable to automatically download/install artifact ‘libvorbis’ from sources listed in ‘C:\Users\davidfr.julia\packages\libvorbis_jll\F1e3O\Artifacts.toml’.
Sources attempted:
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\davidfr\AppData\Local\Programs\Julia-1.8.0-rc1\share\julia\stdlib\v1.8\Pkg\src\Artifacts.jl:468
1 Like
Looks like ZScaler is blocking this. That’s my bet. Don’t know if that’s happening to lots of folk out there?
1 Like
You can download the dll manually and if you can work out where to put it, it should solve your problem.
tsela
July 9, 2022, 11:48am
9
Zscaler is the bane of my existence! At work, it gets in the way of pretty much everything that connects to the internet, and only few things can be set up to handle its man-in-the-middle attack method of providing “security”.
Luckily, we can bypass it because our IT does provide an alternative connectivity method using a traditional VPN and proxy. That’s what we advise people to use when they work with tools like pip
or Julia’s package manager, as it’s pretty much impossible to make those work with Zscaler in a way that’s not brittle and prone to failure.
2 Likes