# I get an error when running this program with pygmt. It prompts that the gmt\_1.ps file cannot be found, the problem is that I don't have the folder gmt\_session.19036

**URL:** <https://forum.generic-mapping-tools.org/t/i-get-an-error-when-running-this-program-with-pygmt-it-prompts-that-the-gmt-1-ps-file-cannot-be-found-the-problem-is-that-i-dont-have-the-folder-gmt-session-19036/4829>\
**Category:** PyGMT Q&A\
**Created:** [April 22, 2024, 4:32am UTC](https://forum.generic-mapping-tools.org/t/i-get-an-error-when-running-this-program-with-pygmt-it-prompts-that-the-gmt-1-ps-file-cannot-be-found-the-problem-is-that-i-dont-have-the-folder-gmt-session-19036/4829 "2024-04-22T04:32:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiaxiangtian](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jiaxiangtian/32/4134_2.png) [@jiaxiangtian](https://forum.generic-mapping-tools.org/u/jiaxiangtian)\
**Post date:** [April 22, 2024, 4:32am UTC](https://forum.generic-mapping-tools.org/t/i-get-an-error-when-running-this-program-with-pygmt-it-prompts-that-the-gmt-1-ps-file-cannot-be-found-the-problem-is-that-i-dont-have-the-folder-gmt-session-19036/4829/1 "2024-04-22T04:32:02Z")

</div>

![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/f/fd08e3d109c51cc2e20608e2f890a15dc89a56a6.png)  
 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/9/98ab01bbb0c680ec9557baa33c30596160b9a883.png)

---

<div class="post-metadata">

**Author:** ![chrismonti](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@chrismonti](https://forum.generic-mapping-tools.org/u/chrismonti)\
**Post date:** [April 22, 2024, 9:03am UTC](https://forum.generic-mapping-tools.org/t/i-get-an-error-when-running-this-program-with-pygmt-it-prompts-that-the-gmt-1-ps-file-cannot-be-found-the-problem-is-that-i-dont-have-the-folder-gmt-session-19036/4829/2 "2024-04-22T09:03:36Z")

</div>

It sounds like you’re encountering an issue with a Python program that uses PyGMT, a Python interface for the Generic Mapping Tools (GMT). From what you’ve described, it seems like the program is trying to access a file named `gmt_1.ps` in a folder called `gmt_session.19036`, but it’s unable to find that folder.

---

<div class="post-metadata">

**Author:** ![yvonnefroehlich](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yvonnefroehlich/32/5064_2.png) [@yvonnefroehlich](https://forum.generic-mapping-tools.org/u/yvonnefroehlich)\
**Post date:** [April 22, 2024, 9:11am UTC](https://forum.generic-mapping-tools.org/t/i-get-an-error-when-running-this-program-with-pygmt-it-prompts-that-the-gmt-1-ps-file-cannot-be-found-the-problem-is-that-i-dont-have-the-folder-gmt-session-19036/4829/3 "2024-04-22T09:11:08Z")

</div>

Hello @jiaxiangtian

Welcome to the GMT forum!

Please take a look at the guidelines for creating a good forum post at [Forum tips & tricks: create a good post](http://forum.generic-mapping-tools.org/t/forum-tips-tricks-create-a-good-post/2585). Especially, do not post screenshots of code and error / warning messages. Just copy and paste both. You can format your script as code by placing three backticks in the line before and after the block with the script:

````auto
```
your script formatted as code
```

````

* * *

Can you please post the complete output of `python -c "import pygmt; pygmt.show_versions()"`.
