# Failing to precompile Plots due to LoadError

**URL:** <https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232>\
**Category:** New to Julia\
**Tags:** package-manager\
**Created:** [March 1, 2022, 11:59am UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232 "2022-03-01T11:59:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredrikpaues](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikpaues/32/34080_2.png) [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Post date:** [March 1, 2022, 11:59am UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/1 "2022-03-01T11:59:14Z")

</div>

I’m trying to set up Julia on my work computer and encounter a LoadError when I try to precompile Plots.jl. Help would be much appreciated!

I’m on Windows 10 and use Julia 1.7.2.

````julia
julia> import Pkg; Pkg.precompile()
Precompiling project...
  ✗ FFMPEG
  ✗ GR_jll
  ✗ Plots
  0 dependencies successfully precompiled in 5 seconds (130 already precompiled)

ERROR: The following 1 direct dependency failed to precompile:

Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\frpa8185\.julia\compiled\v1.7\Plots\jl_4A62.tmp.
ERROR: LoadError: InitError: could not load library "C:\Users\frpa8185\.julia\artifacts\ecb81e6429c089c1da802644fae337754832d534\bin\avcodec-58.dll"
The specified module could not be found.
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:117
  [3] macro expansion
    @ C:\Users\frpa8185\.julia\packages\JLLWrappers\QpMQW\src\products\library_generators.jl:54 [inlined]
  [4] __init__ ()
    @ FFMPEG_jll C:\Users\frpa8185\.julia\packages\FFMPEG_jll\ECokx\src\wrappers\x86_64-w64-mingw32.jl:41
  [5] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base .\loading.jl:768
  [6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base .\loading.jl:854
  [7] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1097
  [8] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1013
  [9] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:997
 [10] include
    @ .\Base.jl:418 [inlined]
 [11] 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:1318
 [12] top-level scope
    @ none:1
 [13] eval
    @ .\boot.jl:373 [inlined]
 [14] eval(x::Expr)
    @ Base.MainInclude .\client.jl:453
 [15] top-level scope
    @ none:1
during initialization of module FFMPEG_jll
in expression starting at C:\Users\frpa8185\.julia\packages\FFMPEG\OUpap\src\FFMPEG.jl:1
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\frpa8185\.julia\compiled\v1.7\FFMPEG\jl_4F21.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base .\loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:997
  [7] include
    @ .\Base.jl:418 [inlined]
  [8] 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:1318
  [9] top-level scope
    @ none:1
 [10] eval
    @ .\boot.jl:373 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude .\client.jl:453
 [12] top-level scope
    @ none:1
in expression starting at C:\Users\frpa8185\.julia\packages\Plots\LI4FE\src\Plots.jl:1
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types C:\Users\frpa8185\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\Types.jl:68
 [2] precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API C:\Users\frpa8185\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\API.jl:1362
 [3] precompile
   @ C:\Users\frpa8185\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\API.jl:1013 [inlined]
 [4] #precompile#220
   @ C:\Users\frpa8185\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\API.jl:1011 [inlined]
 [5] precompile()
   @ Pkg.API C:\Users\frpa8185\AppData\Local\Programs\Julia-1.7.2\share\julia\stdlib\v1.7\Pkg\src\API.jl:1011
 [6] top-level scope
   @ REPL[3]:1```
````

---

<div class="post-metadata">

**Author:** ![chiraganand](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chiraganand/32/32787_2.png) [@chiraganand](https://discourse.julialang.org/u/chiraganand)\
**Post date:** [March 1, 2022, 1:06pm UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/2 "2022-03-01T13:06:31Z")

</div>

Try installing ffmpeg separately on Windows and then try installing the package again. The avcodec-58.dll file is provided by ffmpeg.

---

<div class="post-metadata">

**Author:** ![fredrikpaues](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikpaues/32/34080_2.png) [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Post date:** [March 1, 2022, 1:09pm UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/3 "2022-03-01T13:09:02Z")

</div>

I have never heard of ffmpeg before this. Is [this](https://ffmpeg.org/) is?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 1, 2022, 1:25pm UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/4 "2022-03-01T13:25:42Z")

</div>

> [@chiraganand](#):
>
> Try installing ffmpeg separately on Windows and then try installing the package again. The avcodec-58.dll file is provided by ffmpeg.

That won’t help anything, `avcodec-58.dll` is _already_ there as clearly shown by the error message.

@fredrikpaues what version of Windows do you have? Is it by any chances one of those versions without audio/video support?

---

<div class="post-metadata">

**Author:** ![fredrikpaues](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikpaues/32/34080_2.png) [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Post date:** [March 1, 2022, 1:38pm UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/5 "2022-03-01T13:38:02Z")

</div>

I listened to Spotify through my headphones just an hour ago, so I would say no 🙂 It’s Windows 10 Enterprise N LTSC version 1809.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 1, 2022, 1:40pm UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/6 "2022-03-01T13:40:39Z")

</div>

Try this:

```julia
]add https://github.com/giordano/DependencyWalker.jl
using Plots # this will result in an error, it's ok
using DependencyWalker
Library(raw"C:\Users\frpa8185\.julia\artifacts\ecb81e6429c089c1da802644fae337754832d534\bin\avcodec-58.dll")

```

The last command _should_ show which library can’t be found.

---

<div class="post-metadata">

**Author:** ![fredrikpaues](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikpaues/32/34080_2.png) [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Post date:** [March 1, 2022, 1:56pm UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/7 "2022-03-01T13:56:35Z")

</div>

I hope that I did it. I’m currently on the subway running my work computer over Remote Desktop from my cell phone 🙄

```julia
julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: InitError: could not load library "C:\Users\frpa8185\.julia\artifacts\ecb81e6429c089c1da802644fae337754832d534\bin\avcodec-58.dll"
The specified module could not be found.
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:117
  [3] macro expansion
    @ C:\Users\frpa8185\.julia\packages\JLLWrappers\QpMQW\src\products\library_generators.jl:54 [inlined]
  [4] __init__ ()
    @ FFMPEG_jll C:\Users\frpa8185\.julia\packages\FFMPEG_jll\ECokx\src\wrappers\x86_64-w64-mingw32.jl:41
  [5] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base .\loading.jl:768
  [6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base .\loading.jl:854
  [7] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1097
  [8] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1013
  [9] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:997
 [10] include
    @ .\Base.jl:418 [inlined]
 [11] 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:1318
 [12] top-level scope
    @ none:1
 [13] eval
    @ .\boot.jl:373 [inlined]
 [14] eval(x::Expr)
    @ Base.MainInclude .\client.jl:453
 [15] top-level scope
    @ none:1
during initialization of module FFMPEG_jll
in expression starting at C:\Users\frpa8185\.julia\packages\FFMPEG\OUpap\src\FFMPEG.jl:1
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\frpa8185\.julia\compiled\v1.7\FFMPEG\jl_E282.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base .\loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:997
  [7] include
    @ .\Base.jl:418 [inlined]
  [8] 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:1318
  [9] top-level scope
    @ none:1
 [10] eval
    @ .\boot.jl:373 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude .\client.jl:453
 [12] top-level scope
    @ none:1
in expression starting at C:\Users\frpa8185\.julia\packages\Plots\LI4FE\src\Plots.jl:1
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\frpa8185\.julia\compiled\v1.7\Plots\jl_DDC4.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base .\loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:997
  [7] eval
    @ .\boot.jl:373 [inlined]
  [8] eval
    @ .\Base.jl:68 [inlined]
  [9] repleval(m::Module, code::Expr, #unused#::String)
    @ VSCodeServer c:\Users\frpa8185\.vscode\extensions\julialang.language-julia-1.5.11\scripts\packages\VSCodeServer\src\repl.jl:157
 [10] (::VSCodeServer.var"#71#73"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer c:\Users\frpa8185\.vscode\extensions\julialang.language-julia-1.5.11\scripts\packages\VSCodeServer\src\repl.jl:123
 [11] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging .\logging.jl:511
 [12] with_logger
    @ .\logging.jl:623 [inlined]
 [13] (::VSCodeServer.var"#70#72"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer c:\Users\frpa8185\.vscode\extensions\julialang.language-julia-1.5.11\scripts\packages\VSCodeServer\src\repl.jl:124
 [14] #invokelatest#2
    @ .\essentials.jl:716 [inlined]
 [15] invokelatest(::Any)
    @ Base .\essentials.jl:714
 [16] macro expansion
    @ c:\Users\frpa8185\.vscode\extensions\julialang.language-julia-1.5.11\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
 [17] (::VSCodeServer.var"#55#56")()
    @ VSCodeServer .\task.jl:423

julia> using DependencyWalker

julia> Library(raw"C:\Users\frpa8185\.julia\artifacts\ecb81e6429c089c1da802644fae337754832d534\bin\avcodec-58.dll")
◼ C:\Users\frpa8185\.julia\artifacts\ecb81e6429c089c1da802644fae337754832d534\bin\avcodec-58.dll
  ◼ C:\Windows\System32\ole32.dll
    ◼ C:\Windows\System32\RPCRT4.dll
      ◼ C:\Windows\System32\KERNELBASE.dll
    ◼ C:\Windows\System32\combase.dll
      ◼ C:\Windows\System32\RPCRT4.dll
        ◼ C:\Windows\System32\KERNELBASE.dll
      ◼ C:\Windows\System32\bcryptPrimitives.dll
      ◼ C:\Windows\System32\KERNELBASE.dll
    ◼ C:\Windows\System32\GDI32.dll
    ◼ C:\Windows\System32\KERNEL32.DLL
      ◼ C:\Windows\System32\KERNELBASE.dll
    ◼ C:\Windows\System32\USER32.dll
      ◼ C:\Windows\System32\KERNELBASE.dll
      ◼ C:\Windows\System32\GDI32.dll
    ◼ C:\Windows\System32\KERNELBASE.dll
  ◼ C:\Users\frpa8185\AppData\Local\Programs\Julia-1.7.2\bin\libwinpthread-1.dll
    ◼ C:\Windows\System32\msvcrt.dll
      ◼ C:\Windows\System32\KERNELBASE.dll
    ◼ C:\Windows\System32\KERNEL32.DLL
      ◼ C:\Windows\System32\KERNELBASE.dll
  ✗ libx265.dll (NOT FOUND)
  ✗ libiconv-2.dll (NOT FOUND)
  ✗ libvorbisenc-2.dll (NOT FOUND)
  ◼ C:\Windows\System32\msvcrt.dll
    ◼ C:\Windows\System32\KERNELBASE.dll
  ✗ libvorbis-0.dll (NOT FOUND)
  ✗ libx264-163.dll (NOT FOUND)
  ◼ C:\Windows\System32\KERNEL32.DLL
    ◼ C:\Windows\System32\KERNELBASE.dll
  ✗ libmp3lame-0.dll (NOT FOUND)
  ✗ libopus-0.dll (NOT FOUND)
  ✗ libfdk-aac-2.dll (NOT FOUND)
  ✗ swresample-3.dll (NOT FOUND)
  ✗ MFPlat.DLL (NOT FOUND)
  ✗ avutil-56.dll (NOT FOUND)
  ◼ C:\Users\frpa8185\AppData\Local\Programs\Julia-1.7.2\bin\libz.dll
    ◼ C:\Windows\System32\msvcrt.dll
      ◼ C:\Windows\System32\KERNELBASE.dll
    ◼ C:\Windows\System32\KERNEL32.DLL
      ◼ C:\Windows\System32\KERNELBASE.dll

```

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 1, 2022, 2:00pm UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/8 "2022-03-01T14:00:17Z")

</div>

> [@fredrikpaues](#):
>
> ` ✗ MFPlat.DLL (NOT FOUND)`

I’m moderately sure that means you’re missing some Windows package to play audio/video

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 1, 2022, 2:03pm UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/9 "2022-03-01T14:03:11Z")

</div>

> [@fredrikpaues](#):
>
> It’s Windows 10 Enterprise N LTSC version 1809.

> [@LoadError: InitError: could not load library "avcodec-58.dll" (Windows 10)](https://discourse.julialang.org/t/loaderror-initerror-could-not-load-library-avcodec-58-dll-windows-10/48091/13):
>
> Hi, I also got the exact same error on a new install (Windows 10, Julia 1.5.2). Turned out my system was a Windows N version (without video codecs installed by default). Installing [the media feature pack](https://support.microsoft.com/en-us/help/3145500/media-feature-pack-list-for-windows-n-editions) solved the issue. It might be helpful to put a warning in the Readme if this can be reproduced.

Looks like you’re indeed in the same situation.

---

<div class="post-metadata">

**Author:** ![fredrikpaues](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikpaues/32/34080_2.png) [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Post date:** [March 1, 2022, 9:36pm UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/10 "2022-03-01T21:36:16Z")

</div>

Success! Thank you!

---

<div class="post-metadata">

**Author:** ![jeffzwe](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jeffzwe](https://discourse.julialang.org/u/jeffzwe)\
**Post date:** [September 28, 2022, 9:20am UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/11 "2022-09-28T09:20:30Z")

</div>

Hi! I’m having similar problems… The main difference is though that I’m using mac 🙂

I’m getting the error:

```julia
Precompiling project...
  ✗ FFMPEG
  ✗ GR_jll
  ✗ Plots
  0 dependencies successfully precompiled in 16 seconds. 128 already precompiled.

ERROR: The following 2 direct dependencies failed to precompile:

FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a]

Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to /Users/jeffreyzweidler/.julia/compiled/v1.8/FFMPEG/jl_lPn5j1.
ERROR: LoadError: InitError: could not load library "/Users/jeffreyzweidler/.julia/artifacts/c759795325eba6523fb1157b582551d4250575e1/lib/libavdevice.58.13.100.dylib"
dlopen(/Users/jeffreyzweidler/.julia/artifacts/c759795325eba6523fb1157b582551d4250575e1/lib/libavdevice.58.13.100.dylib, 1): image not found
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
    @ ~/.julia/packages/JLLWrappers/QpMQW/src/products/library_generators.jl:54 [inlined]
  [4] __init__ ()
    @ FFMPEG_jll ~/.julia/packages/FFMPEG_jll/9kTcb/src/wrappers/x86_64-apple-darwin.jl:38
  [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
    @ ./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
during initialization of module FFMPEG_jll
in expression starting at /Users/jeffreyzweidler/.julia/packages/FFMPEG/OUpap/src/FFMPEG.jl:1
in expression starting at stdin:1

Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /Users/jeffreyzweidler/.julia/compiled/v1.8/Plots/jl_78dDZH.
ERROR: LoadError: InitError: could not load library "/Users/jeffreyzweidler/.julia/artifacts/c759795325eba6523fb1157b582551d4250575e1/lib/libavdevice.58.13.100.dylib"
dlopen(/Users/jeffreyzweidler/.julia/artifacts/c759795325eba6523fb1157b582551d4250575e1/lib/libavdevice.58.13.100.dylib, 1): image not found
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
    @ ~/.julia/packages/JLLWrappers/QpMQW/src/products/library_generators.jl:54 [inlined]
  [4] __init__ ()
    @ FFMPEG_jll ~/.julia/packages/FFMPEG_jll/9kTcb/src/wrappers/x86_64-apple-darwin.jl:38
  [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
    @ ./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::String)
    @ Base ./loading.jl:1554
 [14] top-level scope
    @ stdin:1
during initialization of module FFMPEG_jll
in expression starting at /Users/jeffreyzweidler/.julia/packages/FFMPEG/OUpap/src/FFMPEG.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to /Users/jeffreyzweidler/.julia/compiled/v1.8/FFMPEG/jl_7mq2TP.
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:1705
  [3] compilecache
    @ ./loading.jl:1649 [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 ~/.julia/packages/Plots/nbICw/src/Plots.jl:1
 [11] top-level scope
    @ ~/.julia/packages/Plots/nbICw/src/Plots.jl:181
 [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 /Users/jeffreyzweidler/.julia/packages/Plots/nbICw/src/animation.jl:1
in expression starting at /Users/jeffreyzweidler/.julia/packages/Plots/nbICw/src/Plots.jl:1
in expression starting at stdin:1

Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/Types.jl:67
 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{String}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1427
 [3] precompile
   @ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1058 [inlined]
 [4] #precompile#224
   @ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1056 [inlined]
 [5] precompile
   @ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1056 [inlined]
 [6] #precompile#223
   @ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1055 [inlined]
 [7] precompile(pkg::String)
   @ Pkg.API /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1055
 [8] top-level scope
   @ REPL[4]:1

```

Thank you for the help!

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [September 28, 2022, 9:30am UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/12 "2022-09-28T09:30:18Z")

</div>

Welcome!

> [@jeffzwe](#):
>
> The main difference is though that I’m using mac 🙂

Which means it’s a different problem, since the problem above was _very_ specific to Windows. Mind opening a new thread, providing more details about your system (what version of macOS? What architecture?), version of Julia (output of `versioninfo()`), how you installed it, etc?

---

<div class="post-metadata">

**Author:** ![jeffzwe](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jeffzwe](https://discourse.julialang.org/u/jeffzwe)\
**Post date:** [September 28, 2022, 9:31am UTC](https://discourse.julialang.org/t/failing-to-precompile-plots-due-to-loaderror/77232/13 "2022-09-28T09:31:51Z")

</div>

Sure will do!
