# About some errors in running

**URL:** <https://forum.generic-mapping-tools.org/t/about-some-errors-in-running/3259>\
**Category:** PyGMT Q&A\
**Created:** [September 9, 2022, 8:44am UTC](https://forum.generic-mapping-tools.org/t/about-some-errors-in-running/3259 "2022-09-09T08:44:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiSaiyu](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/lisaiyu/32/2486_2.png) [@LiSaiyu](https://forum.generic-mapping-tools.org/u/LiSaiyu)\
**Post date:** [September 9, 2022, 8:44am UTC](https://forum.generic-mapping-tools.org/t/about-some-errors-in-running/3259/1 "2022-09-09T08:44:43Z")

</div>

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?]

 ![1](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/f/f16e191230ca7b8b20f0ada706bf355b4bfd5ad0.png) ![2](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/7/7c6989b27c13e871dc3c6e4d9c3df4421e408087.png) ![3](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/e/e9549e472287c5798f0538727adc71f7bfda5a39.png)

---

<div class="post-metadata">

**Author:** ![weiji14](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/weiji14/32/33_2.png) [@weiji14](https://forum.generic-mapping-tools.org/u/weiji14)\
**Post date:** [September 9, 2022, 7:17pm UTC](https://forum.generic-mapping-tools.org/t/about-some-errors-in-running/3259/2 "2022-09-09T19:17:30Z")

</div>

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.
