Exception: Cannot label gridlines on a _EPSGProjection plot. Only PlateCarree and Mercator plots are currently supported.
GeoArray.show_map() raises an exception when cartopy<0.18.0 is installed:
Error
Traceback (most recent call last):
File "/home/gfz-fe/miniconda3/envs/enpt/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/home/gfz-fe/miniconda3/envs/enpt/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/home/gfz-fe/miniconda3/envs/enpt/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/home/gfz-fe/scheffler/python/geoarray/tests/test_geoarray.py", line 435, in test_show_map
self.testtiff.show_map()
File "/home/gfz-fe/scheffler/python/geoarray/geoarray/baseclasses.py", line 1328, in show_map
ax.gridlines(draw_labels=True, linewidth=2, color='gray', alpha=0.5, linestyle='--')
File "/home/gfz-fe/miniconda3/envs/enpt/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py", line 1222, in gridlines
gl = Gridliner(
File "/home/gfz-fe/miniconda3/envs/enpt/lib/python3.8/site-packages/cartopy/mpl/gridliner.py", line 185, in __init__
self._assert_can_draw_ticks()
File "/home/gfz-fe/miniconda3/envs/enpt/lib/python3.8/site-packages/cartopy/mpl/gridliner.py", line 396, in _assert_can_draw_ticks
raise TypeError('Cannot label gridlines on a '
Exception: Cannot label gridlines on a _EPSGProjection plot. Only PlateCarree and Mercator plots are currently supported.