Julia can't precompile various packages

Hey,

I’m a relatively new Julia user, though I have run some small scripts in the past. I am currently encountering an error when Julia tries to precompile a few different packages that I need. The error is extremely long and I can’t parse it, so all I can do is reproduce it below:

ERROR: LoadError: LoadError: InitError: could not load library "C:\Users\YOTAM\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll"
The specified module could not be found. 
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl .\libdl.jl:114
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl .\libdl.jl:114
  [3] macro expansion
    @ C:\Users\YOTAM\.julia\packages\JLLWrappers\QpMQW\src\products\library_generators.jl:54 [inlined]
  [4] __init__()
    @ Cairo_jll C:\Users\YOTAM\.julia\packages\Cairo_jll\HW4xi\src\wrappers\x86_64-w64-mingw32.jl:18
  [5] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base .\loading.jl:696
  [6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base .\loading.jl:782
  [7] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1020
  [8] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:936
  [9] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:923
 [10] include(mod::Module, _path::String)
    @ Base .\Base.jl:386
 [11] top-level scope
    @ C:\Users\YOTAM\.julia\packages\JLLWrappers\QpMQW\src\toplevel_generators.jl:188
 [12] include
    @ .\Base.jl:386 [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:1235
 [14] top-level scope
    @ none:1
 [15] eval
    @ .\boot.jl:360 [inlined]
 [16] eval(x::Expr)
    @ Base.MainInclude .\client.jl:446
 [17] top-level scope
    @ none:1
during initialization of module Cairo_jll
in expression starting at C:\Users\YOTAM\.julia\packages\HarfBuzz_jll\zavaV\src\wrappers\x86_64-w64-mingw32.jl:4
in expression starting at C:\Users\YOTAM\.julia\packages\HarfBuzz_jll\zavaV\src\HarfBuzz_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile HarfBuzz_jll [2e76f6c2-a576-52d4-95c1-20adfe4de566] to C:\Users\YOTAM\.julia\compiled\v1.6\HarfBuzz_jll\jl_ECDB.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOContext{Base.PipeEndpoint}, internal_stdout::IOContext{Base.PipeEndpoint}, ignore_loaded_modules::Bool)
    @ Base .\loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:923
  [7] include(mod::Module, _path::String)
    @ Base .\Base.jl:386
  [8] top-level scope
    @ C:\Users\YOTAM\.julia\packages\JLLWrappers\QpMQW\src\toplevel_generators.jl:188
  [9] include
    @ .\Base.jl:386 [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:1235
 [11] top-level scope
    @ none:1
 [12] eval
    @ .\boot.jl:360 [inlined]
 [13] eval(x::Expr)
    @ Base.MainInclude .\client.jl:446
 [14] top-level scope
    @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\libass_jll\SaaQW\src\wrappers\x86_64-w64-mingw32.jl:6
in expression starting at C:\Users\YOTAM\.julia\packages\libass_jll\SaaQW\src\libass_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile libass_jll [0ac62f75-1d6f-5e53-bd7c-93b484bb37c0] to C:\Users\YOTAM\.julia\compiled\v1.6\libass_jll\jl_DC61.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOContext{Base.PipeEndpoint}, internal_stdout::IOContext{Base.PipeEndpoint}, ignore_loaded_modules::Bool)
    @ Base .\loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:923
  [7] include(mod::Module, _path::String)
    @ Base .\Base.jl:386
  [8] top-level scope
    @ C:\Users\YOTAM\.julia\packages\JLLWrappers\QpMQW\src\toplevel_generators.jl:188
  [9] include
    @ .\Base.jl:386 [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:1235
 [11] top-level scope
    @ none:1
 [12] eval
    @ .\boot.jl:360 [inlined]
 [13] eval(x::Expr)
    @ Base.MainInclude .\client.jl:446
 [14] top-level scope
    @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\FFMPEG_jll\OCtN5\src\wrappers\x86_64-w64-mingw32.jl:4
in expression starting at C:\Users\YOTAM\.julia\packages\FFMPEG_jll\OCtN5\src\FFMPEG_jll.jl:2
ERROR: LoadError: Failed to precompile FFMPEG_jll [b22a6f82-2f65-5046-a5b2-351ab43fb4e5] to C:\Users\YOTAM\.julia\compiled\v1.6\FFMPEG_jll\jl_D31A.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOContext{Base.PipeEndpoint}, internal_stdout::IOContext{Base.PipeEndpoint}, ignore_loaded_modules::Bool)
    @ Base .\loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:923
  [7] include
    @ .\Base.jl:386 [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::String)
    @ Base .\loading.jl:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ .\boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude .\client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\FFMPEG\OUpap\src\FFMPEG.jl:1
ERROR: LoadError: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\YOTAM\.julia\compiled\v1.6\FFMPEG\jl_CF8F.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOContext{Base.PipeEndpoint}, internal_stdout::IOContext{Base.PipeEndpoint}, ignore_loaded_modules::Bool)
    @ Base .\loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:923
  [7] include(mod::Module, _path::String)
    @ Base .\Base.jl:386
  [8] include(x::String)
    @ Plots C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\Plots.jl:1
  [9] top-level scope
    @ C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\Plots.jl:182
 [10] include
    @ .\Base.jl:386 [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:1235
 [12] top-level scope
    @ none:1
 [13] eval
    @ .\boot.jl:360 [inlined]
 [14] eval(x::Expr)
    @ Base.MainInclude .\client.jl:446
 [15] top-level scope
    @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\animation.jl:1
in expression starting at C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\Plots.jl:1
ERROR: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\YOTAM\.julia\compiled\v1.6\Plots\jl_9FF4.tmp.
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOContext{Base.PipeEndpoint}, internal_stdout::IOContext{Base.PipeEndpoint}, ignore_loaded_modules::Bool)
    @ Base .\loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:923
  [7] include
    @ .\Base.jl:386 [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:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ .\boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude .\client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\Laplacians\ChQeT\src\Laplacians.jl:1

(This particular error occurs when I try to load a package called “Laplacians”).

Any ideas? I should add that my OS is Windows 10.

Putting your error in code blocks makes it a little easier for us to work out, see here:

But you it seems that something is wrong with Cairo_dll install, and maybe your environment generally? You can maybe try ] update first.

Thanks,

tried “] update” and got that the packages FFMPEG_jll, PyCall, GR_jll, Plots failed, and got the same long error message in response to “using Laplacians”.

Can you try to install the package Laplacians in a separate project:

mkdir myproject
cd myproject
julia --project="."

and then in Julia:

using Pkg
Pkg.add("Laplacians")

Does that work?

Thanks,

Unfortunately no, in this case I get that the following dependencies errored’‘’
✗ HarfBuzz_jll
✗ libass_jll
✗ FFMPEG_jll
✗ FFMPEG
✗ GR_jll
✗ Plots
✗ Laplacians
‘’’

What is the output of:

versioninfo()

‘’’
Julia Version 1.6.2
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core™ i3-6006U CPU @ 2.00GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
‘’’

These are the code ticks, btw :wink: ```

1 Like

Working perfect for me using Julia 1.8.2 on Windows 10. What is the output of

pkg> st

You can enter the package manager mode with the ] key and get back the Julia
prompt with the backspace key.

The output is

  Status `C:\Users\YOTAM\myproject\Project.toml`
  [6f8e5838] Laplacians v1.3.0


Should I try to switch to 1.8.2?

C:\Users\ufechner\repos\laplacians>julia --project
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.2 (2021-07-14)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Laplacians
Entropy pool not available to seed RNG; using ad-hoc entropy sources.

julia>

I also tested on 1.6.2, which also works for me.

Did you try:

pkg> up

OK, I get a test failure:

pkg> test Laplacians
     Testing Running tests...
Entropy pool not available to seed RNG; using ad-hoc entropy sources.
ERROR: LoadError: LoadError: UndefVarError: cholmod_l_analyze not defined
Stacktrace:
  [1] getproperty
    @ .\Base.jl:26 [inlined]
  [2] ask_cholmod(sdd::SparseMatrixCSC{Float64, Int64})
    @ Laplacians C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\src\from_cholmod.jl:29
  [3] augmentTreeOpt(tree::SparseMatrixCSC{Float64, Int64}, A::SparseMatrixCSC{Float64, Int64}; params::AugTreeParams)
    @ Laplacians C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\src\augTreeSolver.jl:136
  [4] augTreePrecon(ddmat::SparseMatrixCSC{Float64, Int64}; params::AugTreeParams)
    @ Laplacians C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\src\augTreeSolver.jl:207
  [5] augTreeSddm(sddm::SparseMatrixCSC{Float64, Int64}; tol::Float64, maxits::Int64, maxtime::Float64, verbose::Bool, pcgIts::Vector{Int64}, params::AugTreeParams)
    @ Laplacians C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\src\augTreeSolver.jl:235
  [6] #5
    @ C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\src\isotonicIPM.jl:34 [inlined]
  [7] l2NewtonStep(Bt::SparseMatrixCSC{Float64, Int64}, x::Vector{Float64}, v::Vector{Float64}, mu0::Float64, solver::var"#5#7")
    @ Main C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\src\isotonicIPM.jl:152
  [8] isotonicIPM(A::SparseMatrixCSC{Float64, Int64}, v::Vector{Float64}, eps::Float64, solver::Function, relGapTermination::Bool)
    @ Main C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\src\isotonicIPM.jl:95
  [9] isotonicIPM(A::SparseMatrixCSC{Float64, Int64}, v::Vector{Float64})
    @ Main C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\src\isotonicIPM.jl:36
 [10] top-level scope
    @ .\timing.jl:210
 [11] include(fname::String)
    @ Base.MainInclude .\client.jl:444
 [12] top-level scope
    @ C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\test\runtests.jl:11
 [13] include(fname::String)
    @ Base.MainInclude .\client.jl:444
 [14] top-level scope
    @ none:6
in expression starting at C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\test\testIncludes.jl:76
in expression starting at C:\Users\ufechner\.julia\packages\Laplacians\ChQeT\test\runtests.jl:11
ERROR: Package Laplacians errored during testing

The tests pass using Julia 1.8.2 on Linux…

After running

pkg> up
Pkg.add("Laplacians")

passes, but when I try

using Laplacians
[ Info: Precompiling Laplacians [6f8e5838-0efe-5de0-80a3-5fb4f8dbb1de]
Entropy pool not available to seed RNG; using ad-hoc entropy sources.
ERROR: LoadError: LoadError: InitError: could not load library "C:\Users\YOTAM\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll"
The specified module could not be found.
Stacktrace:
 [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
   @ Base.Libc.Libdl .\libdl.jl:114
 [2] dlopen(s::String, flags::UInt32)
   @ Base.Libc.Libdl .\libdl.jl:114
 [3] macro expansion
   @ C:\Users\YOTAM\.julia\packages\JLLWrappers\QpMQW\src\products\library_generators.jl:54 [inlined]
 [4] __init__()
   @ Cairo_jll C:\Users\YOTAM\.julia\packages\Cairo_jll\HW4xi\src\wrappers\x86_64-w64-mingw32.jl:18
 [5] _include_from_serialized(path::String, depmods::Vector{Any})
   @ Base .\loading.jl:696
 [6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
   @ Base .\loading.jl:782
 [7] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1020
 [8] require(uuidkey::Base.PkgId)
   @ Base .\loading.jl:936
 [9] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:923
[10] include(mod::Module, _path::String)
   @ Base .\Base.jl:386
[11] top-level scope
   @ C:\Users\YOTAM\.julia\packages\JLLWrappers\QpMQW\src\toplevel_generators.jl:188
[12] include
   @ .\Base.jl:386 [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:1235
[14] top-level scope
   @ none:1
[15] eval
   @ .\boot.jl:360 [inlined]
[16] eval(x::Expr)
   @ Base.MainInclude .\client.jl:446
[17] top-level scope
   @ none:1
during initialization of module Cairo_jll
in expression starting at C:\Users\YOTAM\.julia\packages\HarfBuzz_jll\zavaV\src\wrappers\x86_64-w64-mingw32.jl:4
in expression starting at C:\Users\YOTAM\.julia\packages\HarfBuzz_jll\zavaV\src\HarfBuzz_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile HarfBuzz_jll [2e76f6c2-a576-52d4-95c1-20adfe4de566] to C:\Users\YOTAM\.julia\compiled\v1.6\HarfBuzz_jll\jl_7956.tmp.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base .\loading.jl:1385
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base .\loading.jl:1329
 [4] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1043
 [5] require(uuidkey::Base.PkgId)
   @ Base .\loading.jl:936
 [6] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:923
 [7] include(mod::Module, _path::String)
   @ Base .\Base.jl:386
 [8] top-level scope
   @ C:\Users\YOTAM\.julia\packages\JLLWrappers\QpMQW\src\toplevel_generators.jl:188
 [9] include
   @ .\Base.jl:386 [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:1235
[11] top-level scope
   @ none:1
[12] eval
   @ .\boot.jl:360 [inlined]
[13] eval(x::Expr)
   @ Base.MainInclude .\client.jl:446
[14] top-level scope
   @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\libass_jll\SaaQW\src\wrappers\x86_64-w64-mingw32.jl:6
in expression starting at C:\Users\YOTAM\.julia\packages\libass_jll\SaaQW\src\libass_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile libass_jll [0ac62f75-1d6f-5e53-bd7c-93b484bb37c0] to C:\Users\YOTAM\.julia\compiled\v1.6\libass_jll\jl_71B5.tmp.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base .\loading.jl:1385
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base .\loading.jl:1329
 [4] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1043
 [5] require(uuidkey::Base.PkgId)
   @ Base .\loading.jl:936
 [6] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:923
 [7] include(mod::Module, _path::String)
   @ Base .\Base.jl:386
 [8] top-level scope
   @ C:\Users\YOTAM\.julia\packages\JLLWrappers\QpMQW\src\toplevel_generators.jl:188
 [9] include
   @ .\Base.jl:386 [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:1235
[11] top-level scope
   @ none:1
[12] eval
   @ .\boot.jl:360 [inlined]
[13] eval(x::Expr)
   @ Base.MainInclude .\client.jl:446
[14] top-level scope
   @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\FFMPEG_jll\OCtN5\src\wrappers\x86_64-w64-mingw32.jl:4
in expression starting at C:\Users\YOTAM\.julia\packages\FFMPEG_jll\OCtN5\src\FFMPEG_jll.jl:2
ERROR: LoadError: Failed to precompile FFMPEG_jll [b22a6f82-2f65-5046-a5b2-351ab43fb4e5] to C:\Users\YOTAM\.julia\compiled\v1.6\FFMPEG_jll\jl_6A91.tmp.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base .\loading.jl:1385
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base .\loading.jl:1329
 [4] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1043
 [5] require(uuidkey::Base.PkgId)
   @ Base .\loading.jl:936
 [6] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:923
 [7] include
   @ .\Base.jl:386 [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::String)
   @ Base .\loading.jl:1235
 [9] top-level scope
   @ none:1
[10] eval
   @ .\boot.jl:360 [inlined]
[11] eval(x::Expr)
   @ Base.MainInclude .\client.jl:446
[12] top-level scope
   @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\FFMPEG\OUpap\src\FFMPEG.jl:1
ERROR: LoadError: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\YOTAM\.julia\compiled\v1.6\FFMPEG\jl_67B3.tmp.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base .\loading.jl:1385
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base .\loading.jl:1329
 [4] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1043
 [5] require(uuidkey::Base.PkgId)
   @ Base .\loading.jl:936
 [6] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:923
 [7] include(mod::Module, _path::String)
   @ Base .\Base.jl:386
 [8] include(x::String)
   @ Plots C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\Plots.jl:1
 [9] top-level scope
   @ C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\Plots.jl:182
[10] include
   @ .\Base.jl:386 [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:1235
[12] top-level scope
   @ none:1
[13] eval
   @ .\boot.jl:360 [inlined]
[14] eval(x::Expr)
   @ Base.MainInclude .\client.jl:446
[15] top-level scope
   @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\animation.jl:1
in expression starting at C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\Plots.jl:1
ERROR: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\YOTAM\.julia\compiled\v1.6\Plots\jl_3F5B.tmp.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base .\loading.jl:1385
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base .\loading.jl:1329
 [4] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1043
 [5] require(uuidkey::Base.PkgId)
   @ Base .\loading.jl:936
 [6] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:923
 [7] include
   @ .\Base.jl:386 [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:1235
 [9] top-level scope
   @ none:1
[10] eval
   @ .\boot.jl:360 [inlined]
[11] eval(x::Expr)
   @ Base.MainInclude .\client.jl:446
[12] top-level scope
   @ none:1
in expression starting at C:\Users\YOTAM\.julia\packages\Laplacians\ChQeT\src\Laplacians.jl:1
ERROR: Failed to precompile Laplacians [6f8e5838-0efe-5de0-80a3-5fb4f8dbb1de] to C:\Users\YOTAM\.julia\compiled\v1.6\Laplacians\jl_39B5.tmp.
Stacktrace:
[1] error(s::String)
  @ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
  @ Base .\loading.jl:1385
[3] compilecache(pkg::Base.PkgId, path::String)
  @ Base .\loading.jl:1329
[4] _require(pkg::Base.PkgId)
  @ Base .\loading.jl:1043
[5] require(uuidkey::Base.PkgId)
  @ Base .\loading.jl:936
[6] require(into::Module, mod::Symbol)
  @ Base .\loading.jl:923

Not sure if this is different than test. FWIW I have been able to use this package using Google Colab.

I was running:

pkg> test Laplacians

using Julia 1.8.2 on Windows 10, and the tests passed.

So please try to use Julia 1.8.2…

And if you want to learn how to make sure that old package versions keep working read: Working with Julia projects | Julia programming notes

By the way, the long term stable release is 1.6.7. If the package does not work with this version you could create a bug report at Issues · danspielman/Laplacians.jl · GitHub

On the other hand, you can see here: Laplacians.jl/Project.toml at master · danspielman/Laplacians.jl · GitHub that the oldest version of Julia that is supported by the current version of Laplacians is 1.7.0…

Jesus, it’s still not working…changed to

Julia Version 1.8.2
Commit 36034abf26 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 4 × Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 4 virtual cores

and ran

] update

And yet I’m still getting

[ Info: Precompiling Laplacians [6f8e5838-0efe-5de0-80a3-5fb4f8dbb1de]
Entropy pool not available to seed RNG; using ad-hoc entropy sources.
ERROR: LoadError: InitError: could not load library "C:\Users\YOTAM\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.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:116
  [3] macro expansion
    @ C:\Users\YOTAM\.julia\packages\JLLWrappers\QpMQW\src\products\library_generators.jl:54 [inlined]
  [4] __init__()
    @ Cairo_jll C:\Users\YOTAM\.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\YOTAM\.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\YOTAM\.julia\packages\HarfBuzz_jll\zavaV\src\wrappers\x86_64-w64-mingw32.jl:4
in expression starting at C:\Users\YOTAM\.julia\packages\HarfBuzz_jll\zavaV\src\HarfBuzz_jll.jl:2
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile HarfBuzz_jll [2e76f6c2-a576-52d4-95c1-20adfe4de566] to C:\Users\YOTAM\.julia\compiled\v1.8\HarfBuzz_jll\jl_82E6.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\YOTAM\.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\YOTAM\.julia\packages\libass_jll\SaaQW\src\wrappers\x86_64-w64-mingw32.jl:6
in expression starting at C:\Users\YOTAM\.julia\packages\libass_jll\SaaQW\src\libass_jll.jl:2
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile libass_jll [0ac62f75-1d6f-5e53-bd7c-93b484bb37c0] to C:\Users\YOTAM\.julia\compiled\v1.8\libass_jll\jl_7E52.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\YOTAM\.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\YOTAM\.julia\packages\FFMPEG_jll\OCtN5\src\wrappers\x86_64-w64-mingw32.jl:4
in expression starting at C:\Users\YOTAM\.julia\packages\FFMPEG_jll\OCtN5\src\FFMPEG_jll.jl:2
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile FFMPEG_jll [b22a6f82-2f65-5046-a5b2-351ab43fb4e5] to C:\Users\YOTAM\.julia\compiled\v1.8\FFMPEG_jll\jl_7866.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\YOTAM\.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 C:\Users\YOTAM\.julia\compiled\v1.8\FFMPEG\jl_7672.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\YOTAM\.julia\packages\Plots\AAjgN\src\Plots.jl:1
 [11] top-level scope
    @ C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\Plots.jl:182
 [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
in expression starting at C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\animation.jl:1
in expression starting at C:\Users\YOTAM\.julia\packages\Plots\AAjgN\src\Plots.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\YOTAM\.julia\compiled\v1.8\Plots\jl_4B6A.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::Nothing)
    @ Base .\loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at C:\Users\YOTAM\.julia\packages\Laplacians\ChQeT\src\Laplacians.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile Laplacians [6f8e5838-0efe-5de0-80a3-5fb4f8dbb1de] to C:\Users\YOTAM\.julia\compiled\v1.8\Laplacians\jl_465F.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

Can you check if this file exists on your computer:

C:\Users\YOTAM\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin\libcairo-2.dll

It exists on my computer.

Nope, I’m getting

The system cannot find the path specified.

Does this path exist:

C:\Users\YOTAM\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730

or this one:

C:\Users\YOTAM\.julia\artifacts

Yes, both paths exist.