When I use pygmt, the following message is output an absurd amount of times despite the fact that my code is doing what is intended:
pygmt-session [ERROR]: API_IMAGE_LAYOUT only available when GMT is linked with GDAL; request ignored
Is there any way to suppress this message?
Could you please post the output:
python -c "import pygmt; pygmt.show_versions()"
That message makes no sense because you cannot have a GMT that is NOT linked against GDAL and I don’t find it neither in the GMT or PyGMT source codes. Maybe, somehow, you are using a old GMT version?
pygmt-session [ERROR]: API_IMAGE_LAYOUT only available when GMT is linked with GDAL; request ignored
pygmt-session [ERROR]: API_IMAGE_LAYOUT only available when GMT is linked with GDAL; request ignored
PyGMT information:
version: v0.11.0
System information:
python: 3.9.7 (default, Sep 30 2021, 18:59:18) [GCC Intel(R) C++ gcc 9.4 mode]
executable: /home1/00760/byaa724/venv/pygmt/bin/python
machine: Linux-4.18.0-372.26.1.el8_6.x86_64-x86_64-with-glibc2.28
Dependency information:
numpy: 2.0.2
pandas: 2.2.3
xarray: 2024.7.0
netCDF4: 1.7.2
packaging: 24.2
contextily: None
geopandas: None
ipython: None
rioxarray: None
ghostscript: 9.27
GMT library information:
pygmt-session [ERROR]: API_IMAGE_LAYOUT only available when GMT is linked with GDAL; request ignored
cores: 256
grid layout: rows
library path: /scratch/tacc/apps/intel19/gmt/6.3.0/lib64/libgmt.so
padding: 2
plugin dir: /scratch/tacc/apps/intel19/gmt/6.3.0/lib64/gmt/plugins
share dir: /scratch/tacc/apps/intel19/gmt/6.3.0/share
version: 6.3.0
pygmt-session [ERROR]: API_IMAGE_LAYOUT only available when GMT is linked with GDAL; request ignored
You may be right, I just double checked my GMT version and I believe I’m running 6.3.0 and now seeing that the PyGMT docs say to use GMT 6.4.0
I will try updating it and seeing if that fixes this annoying error