# Pygmt.config

**URL:** <https://forum.generic-mapping-tools.org/t/pygmt-config/3966>\
**Category:** PyGMT Q&A\
**Created:** [May 25, 2023, 4:30am UTC](https://forum.generic-mapping-tools.org/t/pygmt-config/3966 "2023-05-25T04:30:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lalit.seismo](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@lalit.seismo](https://forum.generic-mapping-tools.org/u/lalit.seismo)\
**Post date:** [May 25, 2023, 4:30am UTC](https://forum.generic-mapping-tools.org/t/pygmt-config/3966/1 "2023-05-25T04:30:04Z")

</div>

Hi, I am using pygmt 0.9. But whenever I am trying to use any parameters from pygmt.config it is showing too many warnings. Why it is happening?

> import pygmt  
> fig = pygmt.Figure()  
> pygmt.config(FONT = ‘18p’)

and it showing these many warnings and error as well.

> gmt [WARNING]: Length o not supported - revert to default unit [point]  
> gmt [WARNING]: aut not a valid number and may not be decoded properly.  
> gmt [WARNING]: Representation of font size not recognised. Using default.  
> gmt [ERROR]: Unrecognized keyword FONT\_SUBTITLE.  
> gmt [WARNING]: Length o not supported - revert to default unit [cm]  
> gmt [WARNING]: aut not a valid number and may not be decoded properly.  
> gmt [WARNING]: Length o not supported - revert to default unit [cm]  
> gmt [WARNING]: aut not a valid number and may not be decoded properly.  
> gmt [ERROR]: MAP\_FRAME\_AXES given illegal value (auto)!  
> gmt [WARNING]: Length o not supported - revert to default unit [cm]  
> gmt [WARNING]: aut not a valid number and may not be decoded properly.  
> gmt [ERROR]: MAP\_FRAME\_WIDTH given illegal value (autc)!  
> gmt [WARNING]: Length o not supported - revert to default unit [cm]  
> gmt [WARNING]: aut not a valid number and may not be decoded properly.  
> gmt [WARNING]: Length o not supported - revert to default unit [cm]  
> gmt [WARNING]: aut not a valid number and may not be decoded properly.  
> gmt [WARNING]: Length o not supported - revert to default unit [cm]  
> gmt [WARNING]: aut not a valid number and may not be decoded properly.  
> gmt [WARNING]: Length o not supported - revert to default unit [cm]  
> gmt [WARNING]: aut not a valid number and may not be decoded properly.  
> gmt [WARNING]: Length o not supported - revert to default unit [cm]  
> gmt [WARNING]: aut not a valid number and may not be decoded properly.  
> 3 GMT Defaults conversion errors in file /home/lalit/.gmt/sessions/gmt\_session.393563/gmt.conf.2!

And it is printing output like this:

> [3]: pygmt.src.config.config at 0x7fc53c24be80\>

---

<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:** [June 2, 2023, 10:30am UTC](https://forum.generic-mapping-tools.org/t/pygmt-config/3966/2 "2023-06-02T10:30:51Z")

</div>

Hello @lalit.seismo,

it looks like that there is something wrong in your config file at “/home/lalit/.gmt/sessions/gmt\_session.393563/gmt.conf.2”. For the parameters `FONT_SUBTITLE`, `MAP_FRAME_AXES`, and `MAP_FRAME_WIDTH` no valid numbers or units seem to be given.

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [June 4, 2023, 11:56pm UTC](https://forum.generic-mapping-tools.org/t/pygmt-config/3966/3 "2023-06-04T23:56:31Z")

</div>

It’s also likely that you have an very old GMT version installed and PyGMT used that one instead of the one installed by anaconda. Or, you may have a “gmt.conf” file in your home directory or current directoy.

---

<div class="post-metadata">

**Author:** ![lalit.seismo](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@lalit.seismo](https://forum.generic-mapping-tools.org/u/lalit.seismo)\
**Post date:** [June 11, 2023, 4:37am UTC](https://forum.generic-mapping-tools.org/t/pygmt-config/3966/4 "2023-06-11T04:37:14Z")

</div>

Thank you. I’ll take a look at this.
