# Error occured after the first precompilation on some packages after upadting to Julia 1.8.4

**URL:** <https://discourse.julialang.org/t/error-occured-after-the-first-precompilation-on-some-packages-after-upadting-to-julia-1-8-4/92138>\
**Category:** Package Management\
**Tags:** plots, juliaup\
**Created:** [December 26, 2022, 10:49am UTC](https://discourse.julialang.org/t/error-occured-after-the-first-precompilation-on-some-packages-after-upadting-to-julia-1-8-4/92138 "2022-12-26T10:49:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shayan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shayan/32/33025_2.png) [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Post date:** [December 26, 2022, 10:49am UTC](https://discourse.julialang.org/t/error-occured-after-the-first-precompilation-on-some-packages-after-upadting-to-julia-1-8-4/92138/1 "2022-12-26T10:49:27Z")

</div>

I updated Julia using the Juliaup and now I can’t precompile some packages. Does this happen to everyone?

```julia
julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

```

I break the error into several subsections for you to better read it:

> **section 1 error:**
>
> ```julia
> ERROR: LoadError: InitError: could not load library "C:\Users\Shayan\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll"
> %1 is not a valid Win32 application.
> Stacktrace:
> [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
> @ Base.Libc.Libdl .\libdl.jl:117
> [2] dlopen(s::String, flags::UInt32)
> @ Base.Libc.Libdl .\libdl.jl:116
> [3] macro expansion
> @ C:\Users\Shayan\.julia\packages\JLLWrappers\QpMQW\src\products\library_generators.jl:54 [inlined]
> [4] __init__ ()
> @ Cairo_jll C:\Users\Shayan\.julia\packages\Cairo_jll\HW4xi\src\wrappers\x86_64-w64-mingw32.jl:18
> [5] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
> @ Base .\loading.jl:831
> [6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
> @ Base .\loading.jl:1039
> [7] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1315
> [8] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [9] macro expansion
> @ .\loading.jl:1180 [inlined]
> [10] macro expansion
> @ .\lock.jl:223 [inlined]
> [11] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> [12] include(mod::Module, _path::String)
> @ Base .\Base.jl:419
> [13] top-level scope
> @ C:\Users\Shayan\.julia\packages\JLLWrappers\QpMQW\src\toplevel_generators.jl:188
> [14] include
> @ .\Base.jl:419 [inlined]
> [15] 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, UInt64}}, source::String)
> @ Base .\loading.jl:1554
> [16] top-level scope
> @ stdin:1
> during initialization of module Cairo_jll
> in expression starting at C:\Users\Shayan\.julia\packages\HarfBuzz_jll\zavaV\src\wrappers\x86_64-w64-mingw32.jl:4
> in expression starting at C:\Users\Shayan\.julia\packages\HarfBuzz_jll\zavaV\src\HarfBuzz_jll.jl:2
> in expression starting at stdin:1
> 
> ```

> **section 2 error:**
>
> ```julia
> ERROR: LoadError: Failed to precompile HarfBuzz_jll [2e76f6c2-a576-52d4-95c1-20adfe4de566] to C:\Users\Shayan\.julia\compiled\v1.8\HarfBuzz_jll\jl_73BA.tmp.
> Stacktrace:
> [1] error(s::String)
> @ Base .\error.jl:35
> [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
> @ Base .\loading.jl:1707
> [3] compilecache
> @ .\loading.jl:1651 [inlined]
> [4] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1337
> [5] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [6] macro expansion
> @ .\loading.jl:1180 [inlined]
> [7] macro expansion
> @ .\lock.jl:223 [inlined]
> [8] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> [9] include(mod::Module, _path::String)
> @ Base .\Base.jl:419
> [10] top-level scope
> @ C:\Users\Shayan\.julia\packages\JLLWrappers\QpMQW\src\toplevel_generators.jl:188
> [11] include
> @ .\Base.jl:419 [inlined]
> [12] 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, UInt64}}, source::String)
> @ Base .\loading.jl:1554
> [13] top-level scope
> @ stdin:1
> in expression starting at C:\Users\Shayan\.julia\packages\libass_jll\SaaQW\src\wrappers\x86_64-w64-mingw32.jl:6
> in expression starting at C:\Users\Shayan\.julia\packages\libass_jll\SaaQW\src\libass_jll.jl:2
> in expression starting at stdin:1
> 
> ```

> **section 3 error:**
>
> ```julia
> ERROR: LoadError: Failed to precompile libass_jll [0ac62f75-1d6f-5e53-bd7c-93b484bb37c0] to C:\Users\Shayan\.julia\compiled\v1.8\libass_jll\jl_70DB.tmp.
> Stacktrace:
> [1] error(s::String)
> @ Base .\error.jl:35
> [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
> @ Base .\loading.jl:1707
> [3] compilecache
> @ .\loading.jl:1651 [inlined]
> [4] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1337
> [5] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [6] macro expansion
> @ .\loading.jl:1180 [inlined]
> [7] macro expansion
> @ .\lock.jl:223 [inlined]
> [8] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> [9] include(mod::Module, _path::String)
> @ Base .\Base.jl:419
> [10] top-level scope
> @ C:\Users\Shayan\.julia\packages\JLLWrappers\QpMQW\src\toplevel_generators.jl:188
> [11] include
> @ .\Base.jl:419 [inlined]
> [12] 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, UInt64}}, source::String)
> @ Base .\loading.jl:1554
> [13] top-level scope
> @ stdin:1
> in expression starting at C:\Users\Shayan\.julia\packages\FFMPEG_jll\OCtN5\src\wrappers\x86_64-w64-mingw32.jl:4
> in expression starting at C:\Users\Shayan\.julia\packages\FFMPEG_jll\OCtN5\src\FFMPEG_jll.jl:2
> in expression starting at stdin:1
> 
> ```

> **section 4 error:**
>
> ```julia
> ERROR: LoadError: Failed to precompile FFMPEG_jll [b22a6f82-2f65-5046-a5b2-351ab43fb4e5] to C:\Users\Shayan\.julia\compiled\v1.8\FFMPEG_jll\jl_6DED.tmp.
> Stacktrace:
> [1] error(s::String)
> @ Base .\error.jl:35
> [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
> @ Base .\loading.jl:1707
> [3] compilecache
> @ .\loading.jl:1651 [inlined]
> [4] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1337
> [5] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [6] macro expansion
> @ .\loading.jl:1180 [inlined]
> [7] macro expansion
> @ .\lock.jl:223 [inlined]
> [8] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> [9] include
> @ .\Base.jl:419 [inlined]
> [10] 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, UInt64}}, source::String)
> @ Base .\loading.jl:1554
> [11] top-level scope
> @ stdin:1
> in expression starting at C:\Users\Shayan\.julia\packages\FFMPEG\OUpap\src\FFMPEG.jl:1
> in expression starting at stdin:1
> 
> ```

> **section 5 error:**
>
> ```julia
> ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\Shayan\.julia\compiled\v1.8\FFMPEG\jl_6CC5.tmp.
> Stacktrace:
> [1] error(s::String)
> @ Base .\error.jl:35
> [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
> @ Base .\loading.jl:1707
> [3] compilecache
> @ .\loading.jl:1651 [inlined]
> [4] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1337
> [5] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [6] macro expansion
> @ .\loading.jl:1180 [inlined]
> [7] macro expansion
> @ .\lock.jl:223 [inlined]
> [8] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> [9] include(mod::Module, _path::String)
> @ Base .\Base.jl:419
> [10] include(x::String)
> @ Plots C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:1
> [11] top-level scope
> @ C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:166
> [12] include
> @ .\Base.jl:419 [inlined]
> [13] 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, UInt64}}, source::Nothing)
> @ Base .\loading.jl:1554
> [14] top-level scope
> @ stdin:1
> in expression starting at C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\animation.jl:1
> in expression starting at C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:1
> in expression starting at stdin:1
> 
> ```

> **section 6 error:**
>
> ```julia
> ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\Shayan\.julia\compiled\v1.8\Plots\jl_52F3.tmp.
> Stacktrace:
> [1] error(s::String)
> @ Base .\error.jl:35
> [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
> @ Base .\loading.jl:1707
> [3] compilecache
> @ .\loading.jl:1651 [inlined]
> [4] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1337
> [5] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [6] macro expansion
> @ .\loading.jl:1180 [inlined]
> [7] macro expansion
> @ .\lock.jl:223 [inlined]
> [8] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> 
> ```

I reported it [here](https://github.com/JuliaPlots/Plots.jl/issues/4608), but no one has answered me so far. So I decided to ask if anyone was confronted with it too.

---

<div class="post-metadata">

**Author:** ![tt1234567](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Post date:** [December 26, 2022, 10:53am UTC](https://discourse.julialang.org/t/error-occured-after-the-first-precompilation-on-some-packages-after-upadting-to-julia-1-8-4/92138/2 "2022-12-26T10:53:34Z")

</div>

Hi @Shayan. This looks a bit like my problem [here](https://discourse.julialang.org/t/glmakie-and-plots-fail-to-precompile-under-julia-1-8-4/92087). Try reinstalling with “Add Julia to PATH” checked.

---

<div class="post-metadata">

**Author:** ![Shayan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shayan/32/33025_2.png) [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Post date:** [December 26, 2022, 11:38am UTC](https://discourse.julialang.org/t/error-occured-after-the-first-precompilation-on-some-packages-after-upadting-to-julia-1-8-4/92138/3 "2022-12-26T11:38:11Z")

</div>

> [@tt1234567](#):
>
> Try reinstalling

I’ve installed it using Juliaup, how can I reinstall it in Juliaup?  
I tried the following:

```julia
C:\Users\Shayan>juliaup add 1.8.4

C:\Users\Shayan>juliaup status
 Default Channel Version Update
---------------------------------------------------
          1.8.4 1.8.4+0.x64.w64.mingw32
       * release 1.8.4+0.x64.w64.mingw32

C:\Users\Shayan>juliaup default 1.8.4
Configured the default Julia version to be '1.8.4'.

```

Then I tried importing:

```julia
julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: InitError: could not load library "C:\Users\Shayan\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll"
⋮

```

Same happens.

---

<div class="post-metadata">

**Author:** ![tt1234567](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Post date:** [December 26, 2022, 12:46pm UTC](https://discourse.julialang.org/t/error-occured-after-the-first-precompilation-on-some-packages-after-upadting-to-julia-1-8-4/92138/4 "2022-12-26T12:46:50Z")

</div>

I’ve never used Juliaup but maybe you try adding the `Julia-1.8.4\bin` directory to your Windows PATH?

---

<div class="post-metadata">

**Author:** ![Shayan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shayan/32/33025_2.png) [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Post date:** [December 26, 2022, 2:32pm UTC](https://discourse.julialang.org/t/error-occured-after-the-first-precompilation-on-some-packages-after-upadting-to-julia-1-8-4/92138/5 "2022-12-26T14:32:04Z")

</div>

It wasn’t helpful. ☹  
I changed the path to the `C:\Users\Shayan\.julia\juliaup\julia-1.8.4+0.x64.w64.mingw32\bin` and this is the result of importing `Plots` has slightly changed:

> **Code**
>
> ```julia
> julia> using Plots
> [Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
> ERROR: LoadError: InitError: UndefVarError: GR_jll not defined
> Stacktrace:
> [1] __init__ ()
> @ GR.GRPreferences C:\Users\Shayan\.julia\packages\GR\G2qlN\src\preferences.jl:50
> [2] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
> @ Base .\loading.jl:831
> [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
> @ Base .\loading.jl:1039
> [4] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1315
> [5] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [6] macro expansion
> @ .\loading.jl:1180 [inlined]
> [7] macro expansion
> @ .\lock.jl:223 [inlined]
> [8] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> [9] top-level scope
> @ C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\backends.jl:395
> [10] eval
> @ .\boot.jl:368 [inlined]
> [11] _initialize_backend(pkg::Plots.GRBackend)
> @ Plots C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\backends.jl:394
> [12] backend(pkg::Plots.GRBackend)
> @ Plots C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\backends.jl:260
> [13] backend(sym::Symbol)
> @ Plots C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\backends.jl:270
> [14] load_default_backend()
> @ Plots C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\backends.jl:201
> [15] backend()
> @ Plots C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\backends.jl:248
> [16] top-level scope
> @ C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\init.jl:123
> [17] include(mod::Module, _path::String)
> @ Base .\Base.jl:419
> [18] include(x::String)
> @ Plots C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:1
> [19] top-level scope
> @ C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:176
> [20] include
> @ .\Base.jl:419 [inlined]
> [21] 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, UInt64}}, source::Nothing)
> @ Base .\loading.jl:1554
> [22] top-level scope
> @ stdin:1
> during initialization of module GRPreferences
> in expression starting at C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\init.jl:123
> in expression starting at C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:1
> in expression starting at stdin:1
> ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\Shayan\.julia\compiled\v1.8\Plots\jl_E8F0.tmp.
> Stacktrace:
> [1] error(s::String)
> @ Base .\error.jl:35
> [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
> @ Base .\loading.jl:1707
> [3] compilecache
> @ .\loading.jl:1651 [inlined]
> [4] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1337
> [5] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [6] macro expansion
> @ .\loading.jl:1180 [inlined]
> [7] macro expansion
> @ .\lock.jl:223 [inlined]
> [8] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> 
> ```

Then I tried to uninstall and reinstall Juliaup. After that, the error of importing `Plots` is:

> **error**
>
> ```julia
> julia> using Plots
> [Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
> ERROR: LoadError: InitError: could not load library "C:\Users\Shayan\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll"
> %1 is not a valid Win32 application.
> Stacktrace:
> [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
> @ Base.Libc.Libdl .\libdl.jl:117
> [2] dlopen(s::String, flags::UInt32)
> @ Base.Libc.Libdl .\libdl.jl:116
> [3] macro expansion
> @ C:\Users\Shayan\.julia\packages\JLLWrappers\QpMQW\src\products\library_generators.jl:54 [inlined]
> [4] __init__ ()
> @ Cairo_jll C:\Users\Shayan\.julia\packages\Cairo_jll\HW4xi\src\wrappers\x86_64-w64-mingw32.jl:18
> [5] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
> @ Base .\loading.jl:831
> [6] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, sourcepath::String, depmods::Vector{Any})
> @ Base .\loading.jl:938
> [7] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
> @ Base .\loading.jl:1028
> [8] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1315
> [9] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [10] macro expansion
> @ .\loading.jl:1180 [inlined]
> [11] macro expansion
> @ .\lock.jl:223 [inlined]
> [12] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> [13] include(mod::Module, _path::String)
> @ Base .\Base.jl:419
> [14] include(x::String)
> @ Plots C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:1
> [15] top-level scope
> @ C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:166
> [16] include
> @ .\Base.jl:419 [inlined]
> [17] 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, UInt64}}, source::Nothing)
> @ Base .\loading.jl:1554
> [18] top-level scope
> @ stdin:1
> during initialization of module Cairo_jll
> in expression starting at C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\animation.jl:1
> in expression starting at C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:1
> in expression starting at stdin:1
> ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\Shayan\.julia\compiled\v1.8\Plots\jl_AFC0.tmp.
> Stacktrace:
> [1] error(s::String)
> @ Base .\error.jl:35
> [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
> @ Base .\loading.jl:1707
> [3] compilecache
> @ .\loading.jl:1651 [inlined]
> [4] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1337
> [5] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [6] macro expansion
> @ .\loading.jl:1180 [inlined]
> [7] macro expansion
> @ .\lock.jl:223 [inlined]
> [8] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> 
> (@v1.8) pkg> rm Plots
> Updating `C:\Users\Shayan\.julia\environments\v1.8\Project.toml`
> [91a5bcdd] - Plots v1.38.0
> No Changes to `C:\Users\Shayan\.julia\environments\v1.8\Manifest.toml`
> 
> (@v1.8) pkg> gc
> Active manifest files: 8 found
> Active artifact files: 129 found
> Active scratchspaces: 26 found
> Deleted no artifacts, repos, packages or scratchspaces
> 
> (@v1.8) pkg> add Plots
> Updating registry at `C:\Users\Shayan\.julia\registries\General.toml`
> Resolving package versions...
> Updating `C:\Users\Shayan\.julia\environments\v1.8\Project.toml`
> [91a5bcdd] + Plots v1.38.0
> No Changes to `C:\Users\Shayan\.julia\environments\v1.8\Manifest.toml`
> 
> julia> using Plots
> [Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
> ERROR: LoadError: InitError: could not load library "C:\Users\Shayan\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll"
> %1 is not a valid Win32 application.
> Stacktrace:
> [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
> @ Base.Libc.Libdl .\libdl.jl:117
> [2] dlopen(s::String, flags::UInt32)
> @ Base.Libc.Libdl .\libdl.jl:116
> [3] macro expansion
> @ C:\Users\Shayan\.julia\packages\JLLWrappers\QpMQW\src\products\library_generators.jl:54 [inlined]
> [4] __init__ ()
> @ Cairo_jll C:\Users\Shayan\.julia\packages\Cairo_jll\HW4xi\src\wrappers\x86_64-w64-mingw32.jl:18
> [5] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
> @ Base .\loading.jl:831
> [6] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, sourcepath::String, depmods::Vector{Any})
> @ Base .\loading.jl:938
> [7] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
> @ Base .\loading.jl:1028
> [8] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1315
> [9] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [10] macro expansion
> @ .\loading.jl:1180 [inlined]
> [11] macro expansion
> @ .\lock.jl:223 [inlined]
> [12] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> [13] include(mod::Module, _path::String)
> @ Base .\Base.jl:419
> [14] include(x::String)
> @ Plots C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:1
> [15] top-level scope
> @ C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:166
> [16] include
> @ .\Base.jl:419 [inlined]
> [17] 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, UInt64}}, source::Nothing)
> @ Base .\loading.jl:1554
> [18] top-level scope
> @ stdin:1
> during initialization of module Cairo_jll
> in expression starting at C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\animation.jl:1
> in expression starting at C:\Users\Shayan\.julia\packages\Plots\M4dfL\src\Plots.jl:1
> in expression starting at stdin:1
> ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\Shayan\.julia\compiled\v1.8\Plots\jl_27DB.tmp.
> Stacktrace:
> [1] error(s::String)
> @ Base .\error.jl:35
> [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
> @ Base .\loading.jl:1707
> [3] compilecache
> @ .\loading.jl:1651 [inlined]
> [4] _require(pkg::Base.PkgId)
> @ Base .\loading.jl:1337
> [5] _require_prelocked(uuidkey::Base.PkgId)
> @ Base .\loading.jl:1200
> [6] macro expansion
> @ .\loading.jl:1180 [inlined]
> [7] macro expansion
> @ .\lock.jl:223 [inlined]
> [8] require(into::Module, mod::Symbol)
> @ Base .\loading.jl:1144
> 
> ```
