Got this error when I tried to run the GMT example:
julia> imshow(G, cmap=C, colorbar=true)
ERROR: Expected a CPT structure for input
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] palette_init(::Ptr{Nothing}, ::Bool, ::GMT.GMTgrid, ::UInt32) at C:\Users\niclas\.julia\packages\GMT\Ba3R6\src\gmt_main.jl:1166
[3] GMTJL_Set_Object(::Ptr{Nothing}, ::GMT.GMT_RESOURCE, ::GMT.GMTgrid) at C:\Users\niclas\.julia\packages\GMT\Ba3R6\src\gmt_main.jl:795
[4] gmt(::String, ::GMT.GMTgrid, ::Vararg{Any,N} where N) at C:\Users\niclas\.julia\packages\GMT\Ba3R6\src\gmt_main.jl:232
[5] finish_PS_module(::Dict{Symbol,Any}, ::Array{String,1}, ::String, ::String, ::String, ::String, ::Bool, ::Bool, ::Bool, ::GMT.GMTgrid, ::Vararg{Any,N} where N) at C:\Users\niclas\.julia\packages\GMT\Ba3R6\src\common_options.jl:2186
[6] #grdimage#95(::Bool, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:show, :cmap, :colorbar),Tuple{Bool,GMT.GMTcpt,Bool}}}, ::typeof(grdimage), ::String, ::GMT.GMTgrid, ::Nothing, ::Nothing) at C:\Users\niclas\.julia\packages\GMT\Ba3R6\src\grdimage.jl:88
[7] #grdimage at .\none:0 [inlined] (repeats 2 times)
[8] #imshow#125 at C:\Users\niclas\.julia\packages\GMT\Ba3R6\src\imshow.jl:59 [inlined]
[9] (::getfield(GMT, Symbol("#kw##imshow")))(::NamedTuple{(:cmap, :colorbar),Tuple{GMT.GMTcpt,Bool}}, ::typeof(imshow), ::GMT.GMTgrid) at .\none:0
[10] top-level scope at REPL[5]:1
The problem could be on my end since I just used my existing GMT installation which is maybe 6 months to a year old, but I don’t have any more time to reinstall or diagnose this problem today. Just thought I’d let you know.