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

Cannot pass the test -- _jl_libpango not defined #1309

Closed
edwardcao3026 opened this issue Sep 6, 2019 · 5 comments
Closed

Cannot pass the test -- _jl_libpango not defined #1309

edwardcao3026 opened this issue Sep 6, 2019 · 5 comments

Comments

@edwardcao3026
Copy link

Hi, I installed Gadfly and tested it. Only one test was passed, and I got the error information as follows. I am using Julia 1.2.0 and MacOS 10.14.6.

Gadfly: Error During Test at /Users/edwardcho/.julia/packages/Gadfly/1wgcD/test/runtests.jl:81
Got exception outside of a @test
UndefVarError: _jl_libpango not defined
Stacktrace:
[1] apply_property(::Compose.Image{Compose.PDFBackend}, ::Compose.FontPrimitive) at /Users/edwardcho/.julia/packages/Compose/mwSoa/src/cairo_backends.jl:437
[2] push_property_frame(::Compose.Image{Compose.PDFBackend}, ::Array{Compose.Property,1}) at /Users/edwardcho/.julia/packages/Compose/mwSoa/src/cairo_backends.jl:332
[3] drawpart(::Compose.Image{Compose.PDFBackend}, ::Context, ::Compose.IdentityTransform, ::UnitBox{Float64,Float64,Float64,Float64}, ::Measures.BoundingBox{Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}},Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}}}) at /Users/edwardcho/.julia/packages/Compose/mwSoa/src/container.jl:454
[4] drawpart(::Compose.Image{Compose.PDFBackend}, ::Compose.AdhocContainerPromise, ::Compose.IdentityTransform, ::UnitBox{Float64,Float64,Float64,Float64}, ::Measures.BoundingBox{Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}},Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}}}) at /Users/edwardcho/.julia/packages/Compose/mwSoa/src/container.jl:389
[5] drawpart(::Compose.Image{Compose.PDFBackend}, ::Context, ::Compose.IdentityTransform, ::UnitBox{Float64,Float64,Float64,Float64}, ::Measures.BoundingBox{Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}},Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}}}) at /Users/edwardcho/.julia/packages/Compose/mwSoa/src/container.jl:508 (repeats 2 times)
[6] drawpart(::Compose.Image{Compose.PDFBackend}, ::Compose.Table, ::Compose.IdentityTransform, ::UnitBox{Float64,Float64,Float64,Float64}, ::Measures.BoundingBox{Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}},Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}}}) at /Users/edwardcho/.julia/packages/Compose/mwSoa/src/container.jl:389
[7] drawpart(::Compose.Image{Compose.PDFBackend}, ::Context, ::Compose.IdentityTransform, ::UnitBox{Float64,Float64,Float64,Float64}, ::Measures.BoundingBox{Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}},Tuple{Measures.Length{:mm,Float64},Measures.Length{:mm,Float64}}}) at /Users/edwardcho/.julia/packages/Compose/mwSoa/src/container.jl:508 (repeats 2 times)
[8] draw(::Compose.Image{Compose.PDFBackend}, ::Context) at /Users/edwardcho/.julia/packages/Compose/mwSoa/src/container.jl:355
[9] draw(::Compose.Image{Compose.PDFBackend}, ::Plot) at /Users/edwardcho/.julia/packages/Gadfly/1wgcD/src/Gadfly.jl:857
[10] top-level scope at /Users/edwardcho/.julia/packages/Gadfly/1wgcD/test/runtests.jl:88
[11] top-level scope at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113
[12] top-level scope at /Users/edwardcho/.julia/packages/Gadfly/1wgcD/test/runtests.jl:82
[13] include at ./boot.jl:328 [inlined]
[14] include_relative(::Module, ::String) at ./loading.jl:1094
[15] include(::Module, ::String) at ./Base.jl:31
[16] include(::String) at ./client.jl:431
[17] top-level scope at none:5
[18] eval(::Module, ::Any) at ./boot.jl:330
[19] exec_options(::Base.JLOptions) at ./client.jl:271
[20] _start() at ./client.jl:464

Test Summary: | Pass Error Total
Gadfly | 1 1 2
ERROR: LoadError: Some tests did not pass: 1 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /Users/edwardcho/.julia/packages/Gadfly/1wgcD/test/runtests.jl:81
ERROR: Package Gadfly errored during testing

@lobingera
Copy link

Did you install Cairo master?

@edwardcao3026
Copy link
Author

The packages I installed are

Status ~/.julia/environments/v1.2/Project.toml
[c52e3926] Atom v0.10.1
[9e28174c] BinDeps v0.8.10
[159f3aea] Cairo v0.6.0 #binary-builder (https://github.com/giordano/Cairo.jl.git)
[a81c6b42] Compose v0.7.4 #master (https://github.com/GiovineItalia/Compose.jl.git)
[186bb1d3] Fontconfig v0.2.0
[c91e804a] Gadfly v1.1.0
[d9be37ee] Homebrew v0.7.1
[e5e0dc1b] Juno v0.7.2
[91a5bcdd] Plots v0.26.2
[438e738f] PyCall v1.91.2
[df47a6cb] RData v0.6.2
[ce6b1742] RDatasets v0.6.3
[2913bbd2] StatsBase v0.32.0

@lobingera
Copy link

lobingera commented Sep 8, 2019

Gadfly uses the _jl_libpango 'pointer' to the library and Cairo has moved on to use libpango as label.

If you don't really need it, i'd recommend to go back to the released Cairo.jl. Alternatives are: Adapt manually, or open an issue/PR on Gadfly.jl

@timholy
Copy link
Collaborator

timholy commented Sep 8, 2019

It should work now if you update to the latest master on Cairo because of these lines.

@edwardcao3026
Copy link
Author

It is solved! Thanks, folks!

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

3 participants