Error precompling HomotopyContinuation
Seth-Kurankyi opened this issue · 3 comments
I get an error trying to load HomotopyContinuation. I'm not sure how to fix it. The error message is shown below:
using HomotopyContinuation
┌ Info: Precompiling HomotopyContinuation [f213a82b-91d6-5c5d-acf7-10f1c761b327]
└ @ Base loading.jl:1278
ERROR: LoadError: InitError: could not load library "/Users/sasante/.julia/artifacts/ddb3fe2bd525c675f14cc3ec2afb5c943dda93a0/lib/libarb.dylib"
dlopen(/Users/sasante/.julia/artifacts/ddb3fe2bd525c675f14cc3ec2afb5c943dda93a0/lib/libarb.dylib, 1): Library not loaded: @rpath/libflint-14.dylib
Referenced from: /Users/sasante/.julia/artifacts/ddb3fe2bd525c675f14cc3ec2afb5c943dda93a0/lib/libarb-2.9.1.dylib
Reason: image not found
Stacktrace:
[1] dlopen(::String, ::UInt32; throw_error::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Libdl/src/Libdl.jl:109
[2] dlopen(::String, ::UInt32) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Libdl/src/Libdl.jl:109
[3] macro expansion at /Users/sasante/.julia/packages/JLLWrappers/WnWcZ/src/products/library_generators.jl:63 [inlined]
[4] init() at /Users/sasante/.julia/packages/Arb_jll/aXvJT/src/wrappers/x86_64-apple-darwin.jl:11
[5] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
[6] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:782
[7] _require(::Base.PkgId) at ./loading.jl:1007
[8] require(::Base.PkgId) at ./loading.jl:928
[9] require(::Module, ::Symbol) at ./loading.jl:923
[10] include(::Function, ::Module, ::String) at ./Base.jl:380
[11] include(::Module, ::String) at ./Base.jl:368
[12] top-level scope at none:2
[13] eval at ./boot.jl:331 [inlined]
[14] eval(::Expr) at ./client.jl:467
[15] top-level scope at ./none:3
during initialization of module Arb_jll
in expression starting at /Users/sasante/.julia/packages/Arblib/888sy/src/Arblib.jl:3
ERROR: LoadError: Failed to precompile Arblib [fb37089c-8514-4489-9461-98f9c8763369] to /Users/sasante/.julia/compiled/v1.5/Arblib/npOCv_YF5yr.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923
[6] include(::Function, ::Module, ::String) at ./Base.jl:380
[7] include(::Module, ::String) at ./Base.jl:368
[8] top-level scope at none:2
[9] eval at ./boot.jl:331 [inlined]
[10] eval(::Expr) at ./client.jl:467
[11] top-level scope at ./none:3
in expression starting at /Users/sasante/.julia/packages/HomotopyContinuation/vbyom/src/HomotopyContinuation.jl:5
The issue seems to be that Arlib didn’t install properly. What happens if you add it explicitly
using Pkg
pkg"add Arblib"
pkg"build Arblib"
after this you should be able to do using Arblib
and using HomotopyContinuation
Thanks @saschatimme
The error gets fixed after just updating the package registry
Pkg.update()
Great 😊