Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Error requiring Fontconfig from Compose: #57

Open
daxinnan opened this issue May 11, 2020 · 2 comments
Open

Warning: Error requiring Fontconfig from Compose: #57

daxinnan opened this issue May 11, 2020 · 2 comments

Comments

@daxinnan
Copy link

daxinnan commented May 11, 2020

$ julia ./kerneldensity.jl
┌ Warning: Error requiring Fontconfig from Compose:
│ LoadError: UndefVarError: Cairo not defined
│ Stacktrace:
│  [1] top-level scope at /home/lxc/.julia/packages/Compose/Opbga/src/pango.jl:3
│  [2] include(::Module, ::String) at ./Base.jl:377
│  [3] include(::String) at /home/lxc/.julia/packages/Compose/Opbga/src/Compose.jl:1
│  [4] top-level scope at /home/lxc/.julia/packages/Compose/Opbga/src/Compose.jl:176
│  [5] eval at ./boot.jl:331 [inlined]
│  [6] eval at /home/lxc/.julia/packages/Compose/Opbga/src/Compose.jl:1 [inlined]
│  [7] (::Compose.var"#119#125")() at /home/lxc/.julia/packages/Requires/9Jse8/src/require.jl:67
│  [8] err(::Compose.var"#119#125", ::Module, ::String) at /home/lxc/.julia/packages/Requires/9Jse8/src/require.jl:38
│  [9] #118 at /home/lxc/.julia/packages/Requires/9Jse8/src/require.jl:66 [inlined]
│  [10] withpath(::Compose.var"#118#124", ::String) at /home/lxc/.julia/packages/Requires/9Jse8/src/require.jl:28
│  [11] #117 at /home/lxc/.julia/packages/Requires/9Jse8/src/require.jl:65 [inlined]
│  [12] listenpkg(::Compose.var"#117#123", ::Base.PkgId) at /home/lxc/.julia/packages/Requires/9Jse8/src/require.jl:13
│  [13] macro expansion at /home/lxc/.julia/packages/Requires/9Jse8/src/require.jl:64 [inlined]
│  [14] __init__() at /home/lxc/.julia/packages/Compose/Opbga/src/Compose.jl:175
│  [15] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
│  [16] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:781
│  [17] _tryrequire_from_serialized(::Base.PkgId, ::UInt64, ::String) at ./loading.jl:712
│  [18] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:770
│  [19] _require(::Base.PkgId) at ./loading.jl:1006
│  [20] require(::Base.PkgId) at ./loading.jl:927
│  [21] require(::Module, ::Symbol) at ./loading.jl:922
│  [22] include(::Module, ::String) at ./Base.jl:377
│  [23] exec_options(::Base.JLOptions) at ./client.jl:288
│  [24] _start() at ./client.jl:484
│ in expression starting at /home/lxc/.julia/packages/Compose/Opbga/src/pango.jl:3
└ @ Requires ~/.julia/packages/Requires/9Jse8/src/require.jl:40

My kerneldensity.jl

using JLD2, KernelDensityEstimate, KernelDensityEstimatePlotting
@load "seasontop.jld2" spri_tops
p = kde!(convert(Vector{Float64},spri_tops))
plot(p)

spri_tops is a 1-d Array of Float32, so I convert it to Float64.

@daxinnan
Copy link
Author

Is it too bit?
image

@dehann
Copy link
Member

dehann commented Nov 22, 2020

Hi, apologies I did not see the latest two issues here. Yes Fontconfig and Cairo warnings are to do with changes in Gadfly.jl (with KernelDensityEstimatePlotting.jl as user). At time of writing I think the best thing to do is:

using Cairo, KernelDensityEstimatePlotting

which should suppress the warning. There has been quite a bit of work by the Gadfly folks to move away from system font libraries, and this warning might be part of that migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants