Closed joa-quim closed 2 years ago
But we can't control the Ubuntu version we're using on Binder...
There is nothing Julia specific in this error. It should be a problem for PyGMT and GMT Binder sets. Don't you see it?
Yes, the same problem. Something wrong with conda-forge's packages.
Seems to be still a problem, is this related to https://forum.generic-mapping-tools.org/t/conda-gmt-build-is-unusable-in-julia-windows or separate? Will bumping to Julia v1.6 help (xref https://github.com/JuliaLang/julia/issues/34276#issuecomment-784811868)?
┌ Info: Precompiling GMT [5752ebe1-31b9-557e-87aa-f909b540aa54]
└ @ Base loading.jl:1278
ERROR: LoadError: LoadError: could not load library "/srv/conda/envs/notebook/lib/libgmt.so"
/srv/julia/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /srv/conda/envs/notebook/lib/././libtiledb.so.2.2)
Stacktrace:
[1] GMT_Create_Session at /srv/julia/pkg/packages/GMT/wprG1/src/libgmt.jl:26 [inlined] (repeats 2 times)
[2] top-level scope at /srv/julia/pkg/packages/GMT/wprG1/src/get_enums.jl:7
[3] include(::Function, ::Module, ::String) at ./Base.jl:380
[4] include at ./Base.jl:368 [inlined]
[5] include(::String) at /srv/julia/pkg/packages/GMT/wprG1/src/GMT.jl:1
[6] top-level scope at /srv/julia/pkg/packages/GMT/wprG1/src/GMT.jl:193
[7] include(::Function, ::Module, ::String) at ./Base.jl:380
[8] include(::Module, ::String) at ./Base.jl:368
[9] top-level scope at none:2
[10] eval at ./boot.jl:331 [inlined]
[11] eval(::Expr) at ./client.jl:467
[12] top-level scope at ./none:3
in expression starting at /srv/julia/pkg/packages/GMT/wprG1/src/get_enums.jl:7
in expression starting at /srv/julia/pkg/packages/GMT/wprG1/src/GMT.jl:192
Failed to precompile GMT [5752ebe1-31b9-557e-87aa-f909b540aa54] to /srv/julia/pkg/compiled/v1.5/GMT/EoU0j_qQLi1.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_string(::Function, ::Module, ::String, ::String) at ./loading.jl:1091
This is the output from conda list
. Perhaps we can pin some dependency to a lower version so that GMT.jl will work?
Bumping to Julia 1.6 (even 1.5) should have fixed this. It did fix in the CI machine when I updated it to Ubuntu 2020
GMT.jl now works well on Binder. Closing.
I've seen this error when building GMT on Ubuntu latest for CI. I'm guessing the usual dependencies shit between glib and GDAL. My solution wast to use a Ubuntu 2018