simonschoelly/KittyTerminalImages.jl

Not compiling Rsvg

tallakt opened this issue · 2 comments

I installed a brand new mac with Julia 1.7, but this time using KittyTerminalImages returns a compiler error:

julia> using KittyTerminalImages
[ Info: Precompiling KittyTerminalImages [b7fa5abe-5c7d-46c6-a1ae-1026d0d509b9]
ERROR: LoadError: InitError: UndefVarError: librsvg not defined
Stacktrace:
  [1] set_default_dpi
    @ ~/.julia/packages/Rsvg/dClzP/src/calls.jl:52 [inlined]
  [2] __init__()
    @ Rsvg ~/.julia/packages/Rsvg/dClzP/src/Rsvg.jl:16
  [3] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base ./loading.jl:768
  [4] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base ./loading.jl:854
  [5] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1097
  [6] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [7] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [8] include
    @ ./Base.jl:418 [inlined]
  [9] 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
 [10] top-level scope
    @ none:1
 [11] eval
    @ ./boot.jl:373 [inlined]
 [12] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [13] top-level scope
    @ none:1
during initialization of module Rsvg
in expression starting at /Users/tallakt/.julia/packages/KittyTerminalImages/resKz/src/KittyTerminalImages.jl:1
ERROR: Failed to precompile KittyTerminalImages [b7fa5abe-5c7d-46c6-a1ae-1026d0d509b9] to /Users/tallakt/.julia/compiled/v1.7/KittyTerminalImages/jl_70pZ98.
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

This is after seeing another problem that was [I hope] fixed by running brew install librsvg

I realized this eventually is only an Rsvgissue so I posted an issue on their repo instead.