About some errors in running

I am a novice. I write python to plot data, but it reports some errors that I can’t resolve and searches the solutions on search engines. I am searching for the solution.

The errors (python=3.10):

  1. pygmt-session [WARNING]: Remote dataset given to a data processing module but no registration was specified - default to gridline registration (if available)

  2. grdimage [ERROR]: Passing zmax <= zmin prevents automatic CPT generation!

  3. grdimage [ERROR]: Failed to read CPT haxby.

  4. end [ERROR]: Failed to remove gmt_1.ps-! [remove error: Permission denied]

  5. C:/Users/dell/.gmt/sessions/gmt_session.9272: Directory not empty

  6. end [WARNING]: Unable to remove directory C:/Users/dell/.gmt/sessions/gmt_session.9272 [permissions?]

Hi @LiSaiyu,

The warnings/errors (1, 2, 3) might be ok, but those permission related errors (4, 5, 6) look strange. Could you try running gmt clear all in your terminal console and re-run your script to see if it helps? That command will just clear your gmt cache and data folders, in case some data got corrupted when you were downloading the earth_relief files.

If that doesn’t work, please post the output of pygmt.show_versions() (ideally in plain text rather than a screenshot) so we know what versions of GMT you are using and the filepaths to the GMT directories.