Fail to install x265

I’m new to Julia and setting up environment.
I installed following packages already.
(@v1.10) pkg> status
Status C:\Users\Administrator\.julia\environments\v1.10\Project.toml
[324d7699] CategoricalArrays v0.10.8
[8be319e6] Chain v0.6.0
[a93c6f00] DataFrames v1.6.1
[8197267c] IntervalSets v0.7.10
[ade2ca70] Dates
[8ba89e20] Distributed
[de0858da] Printf
[10745b16] Statistics v1.10.0

However, I’m failing to install packages such as GR, Makie and CairoMakie with the message as following. What should I do to solve this problem?

julia> Pkg.add(“GR”)
Resolving package versions…
Installed x265_jll ─ v3.5.0+0
Failure artifact: x265
Failure artifact: x265
ERROR: Unable to automatically download/install artifact ‘x265’ from sources listed in ‘C:\Users\Administrator.julia\packages\x265_jll\9auB3\Artifacts.toml’.
Sources attempted:

This error usually happens when anti-virus software somehow interferes with julia installing artifacts. See Artifact folder could not be made on Windows. · Issue #3822 · JuliaLang/Pkg.jl · GitHub for more info.

A quick fix would be to install the packages on julia 1.9 or somehow change your anti-virus settings.

I have a PR that hopefully fixes this issue Retry artifact rename if it fails by nhz2 · Pull Request #4001 · JuliaLang/Pkg.jl · GitHub but I don’t have access to the right computer to test this PR.

2 Likes

Setting the JULIA_DEPOT_PATH to a place not covered by the anti-virus might work.

PS C:> $Env:JULIA_DEPOT_PATH = "R:\depot"
PS C:> R:\tools\juliaup-1.14.9-x86_64-pc-windows-gnu-portable.tar\julia.exe

This ticket also mentions a solution that manually renames the downloaded artifact.

Many thanks! I just reinstall Julia v1.9.4 and succeeded to install x265 without any problem.

This issue should be fixed on Julia nightly now. If you are feeling adventurous, you could delete the “.julia/artifacts” folder and retry installing GR after running.

juliaup add nightly
juliaup up nightly
julia +nightly