GMT cannot plot on CentOS 7

Open
#1,893 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
centos, julia

Research direction

Reproduce the coast example with Julia v1.12.4 and GMT.jl v1.35.0 on CentOS 7. Start at src/common_options.jl:4204 and the calls in src/gmt_main.jl and src/pscoast.jl, then inspect how Ghostscript is executed and why GMT error 79 occurs. Done means the example plots successfully on the reported environment.

Written by the indexing model from the issue text.

Description

Please try this code with Julia v1.12.4 and GMT.jl v1.35.0:

coast(region=:global, proj=:Winkel, frame=:g, land=:burlywood4, show=true)
psconvert [ERROR]: Cannot execute Ghostscript ('/home/test/.julia/artifacts/2039c07ff05f00d681aa777c71d90947251e16fa/bin/gs').
ERROR: Something went wrong when calling the module. GMT error number = 79
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] gmt(::String)
    @ GMT ~/.julia/packages/GMT/hBo3v/src/gmt_main.jl:166
  [3] showfig(d::Dict{Symbol, Any}, fname_ps::String, fname_ext::String, opt_T::String, K::Bool, fname::String)
    @ GMT ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4204
  [4] finish_PS_module_barr_last(d::Dict{…}, cmd::Vector{…}, fname::String, fname_ext::String, opt_extra::String, output::String, opt_T::String, K::Bool, P::Nothing)
    @ GMT ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4586
  [5] finish_PS_module(d::Dict{Symbol, Any}, cmd::Vector{String}, opt_extra::String, K::Bool, O::Bool, finish::Bool, args::Nothing)
    @ GMT ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4524
  [6] prep_and_call_finish_PS_module
    @ ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4428 [inlined]
  [7] prep_and_call_finish_PS_module
    @ ~/.julia/packages/GMT/hBo3v/src/common_options.jl:4427 [inlined]
  [8] coast(cmd0::String; clip::String, first::Bool, kwargs::@Kwargs{region::Symbol, proj::Symbol, frame::Symbol, land::Symbol, show::Bool})
    @ GMT ~/.julia/packages/GMT/hBo3v/src/pscoast.jl:85
  [9] coast
    @ ~/.julia/packages/GMT/hBo3v/src/pscoast.jl:78 [inlined]
 [10] top-level scope
    @ REPL[2]:1
Dominant language
Julia
Stars
222
Forks
35
Avg merge
8h 1m
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/GMT.jl

All issues in GenericMappingTools/GMT.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.