Skip to content

[Bug] GDAL >3.11 does not support GSAG (Golden Software ASCII grid) #5787

@echoix

Description

@echoix

Describe the bug

It seems that since about two days, tests on macOS fail.
Note that we usually cache the conda environment packages with a key containing the year and week number, so it gets invalidated at least each week if nothing else causes a cache miss.

A quick look at the environment list shows that in successful runs, libgdal-Xxxx were at version 3.10.3, and on failing runs, were at 3.11.0. Seems related to the error message.

To reproduce

  1. Go to https://github.com/OSGeo/grass/actions/runs/15304800747/job/43054599560#step:19:182
  2. See error

Expected behavior

Tests pass

Screenshots


========================================================================
....EE..........
======================================================================
ERROR: test_aspect (__main__.TestSlopeAspectAgainstReference.test_aspect)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "etc/python/grass/gunittest/case.py", line 1324, in runModule
    module.run()
  File "etc/python/grass/pygrass/modules/interface/module.py", line 825, in run
    self.wait()
  File "etc/python/grass/pygrass/modules/interface/module.py", line 846, in wait
    raise CalledModuleError(
grass.exceptions.CalledModuleError: Module run `r.in.gdal input=data/gdal_aspect.grd memory=300 offset=0 num_digits=0 output=reference_aspect -o` ended with an error.
The subprocess ended with a non-zero return code: 1. See the following errors:
b'ERROR: Unable to open datasource <data/gdal_aspect.grd>\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "raster/r.slope.aspect/testsuite/test_r_slope_aspect.py", line 210, in test_aspect
    self.runModule(
  File "etc/python/grass/gunittest/case.py", line 1341, in runModule
    raise CalledModuleError(
grass.exceptions.CalledModuleError: Module run `r.in.gdal r.in_gdal(input='data/gdal_aspect.grd', output='reference_aspect', memory=300, offset=0, num_digits=0, flags='o')` ended with an error.
The subprocess ended with a non-zero return code: 1. See the following errors:
ERROR: Unable to open datasource <data/gdal_aspect.grd>


======================================================================
ERROR: test_slope (__main__.TestSlopeAspectAgainstReference.test_slope)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "etc/python/grass/gunittest/case.py", line 1324, in runModule
    module.run()
  File "etc/python/grass/pygrass/modules/interface/module.py", line 825, in run
    self.wait()
  File "etc/python/grass/pygrass/modules/interface/module.py", line 846, in wait
    raise CalledModuleError(
grass.exceptions.CalledModuleError: Module run `r.in.gdal input=data/gdal_slope.grd memory=300 offset=0 num_digits=0 output=reference_slope -o` ended with an error.
The subprocess ended with a non-zero return code: 1. See the following errors:
b'ERROR: Unable to open datasource <data/gdal_slope.grd>\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "raster/r.slope.aspect/testsuite/test_r_slope_aspect.py", line 175, in test_slope
    self.runModule(
  File "etc/python/grass/gunittest/case.py", line 1341, in runModule
    raise CalledModuleError(
grass.exceptions.CalledModuleError: Module run `r.in.gdal r.in_gdal(input='data/gdal_slope.grd', output='reference_slope', memory=300, offset=0, num_digits=0, flags='o')` ended with an error.
The subprocess ended with a non-zero return code: 1. See the following errors:
ERROR: Unable to open datasource <data/gdal_slope.grd>


----------------------------------------------------------------------
Ran 16 tests in 9.734s
FAILED (errors=2)
========================================================================

System description

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtestsRelated to Test Suite

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions