<div dir="ltr"><div>Hello</div><div><br></div><div>I am trying to build GDAL (this worked) and run the tests (tons of failures). Because it is over a clean clone of master, I think there is something wrong in my configuration. Maybe you can help me.</div><div><br></div><div></div><div>OS: Ubuntu 20.04</div><div>Python: 3.8.5<br></div><div></div><div>$ apt list --installed | grep gdal<br>gdal-bin/focal,now 3.0.4+dfsg-1build3 amd64 [installed]<br>gdal-data/focal,focal,now 3.0.4+dfsg-1build3 all [installed,automatic]<br>libgdal-dev/focal,now 3.0.4+dfsg-1build3 amd64 [installed]<br>libgdal26/focal,now 3.0.4+dfsg-1build3 amd64 [installed,automatic]<br>python3-gdal/focal,now 3.0.4+dfsg-1build3 amd64 [installed,automatic]</div><div><br></div><div>Following the instructions in <a href="https://github.com/OSGeo/gdal/blob/master/CONTRIBUTING.md">https://github.com/OSGeo/gdal/blob/master/CONTRIBUTING.md</a></div><div><br></div><div><span style="font-family:monospace">cd gdal<br>./configure<br>make -j8 -s<br>cd apps; make -s test_ogrsf; cd ..</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">. scripts/setdevenv.sh<br>gdalinfo --version</span></div><div><span style="font-family:monospace">$ GDAL 3.4.0dev-6b8835c2b5, released 2021/06/02</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">cd ../autotest<br>pip install -r requirements.txt</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">python -m pytest<br>Test session starts (platform: linux, Python 3.8.5, pytest 4.6.9, pytest-sugar 0.9.4)<br>rootdir: /home/jshaw/work/gdal/autotest, inifile: pytest.ini, testpaths: ogr, gcore, gdrivers, osr, alg, gnm, utilities, pyscripts<br>plugins: sugar-0.9.4, env-0.6.2<br>collecting ... <br>――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting gcore/multidim.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>gcore/multidim.py:106: in <module><br>    ???<br>E   AttributeError: module 'osgeo.gdal' has no attribute 'GRIORA_RMS'<br><br>――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting alg/fillnodata.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>/usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__<br>    return self._hookexec(self, self.get_hookimpls(), kwargs)<br>/usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec<br>    return self._inner_hookexec(hook, methods, kwargs)<br>/usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda><br>    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(<br>/usr/lib/python3/dist-packages/_pytest/python.py:234: in pytest_pycollect_makeitem<br>    res = list(collector._genfunctions(name, obj))<br>/usr/lib/python3/dist-packages/_pytest/python.py:410: in _genfunctions<br>    self.ihook.pytest_generate_tests(metafunc=metafunc)<br>/usr/lib/python3/dist-packages/pluggy/hooks.py:286: in __call__<br>    return self._hookexec(self, self.get_hookimpls(), kwargs)<br>/usr/lib/python3/dist-packages/pluggy/manager.py:92: in _hookexec<br>    return self._inner_hookexec(hook, methods, kwargs)<br>/usr/lib/python3/dist-packages/pluggy/manager.py:83: in <lambda><br>    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(<br>/usr/lib/python3/dist-packages/_pytest/python.py:137: in pytest_generate_tests<br>    metafunc.parametrize(*marker.args, **marker.kwargs)<br>/usr/lib/python3/dist-packages/_pytest/python.py:1015: in parametrize<br>    ids = self._resolve_arg_ids(argnames, ids, parameters, item=self.definition)<br>/usr/lib/python3/dist-packages/_pytest/python.py:1069: in _resolve_arg_ids<br>    ids = idmaker(argnames, parameters, idfn, ids, self.config, item=item)<br>/usr/lib/python3/dist-packages/_pytest/python.py:1221: in idmaker<br>    ids = [<br>/usr/lib/python3/dist-packages/_pytest/python.py:1222: in <listcomp><br>    _idvalset(valindex, parameterset, argnames, idfn, ids, config=config, item=item)<br>/usr/lib/python3/dist-packages/_pytest/python.py:1210: in _idvalset<br>    if ids is None or (idx >= len(ids) or ids[idx] is None):<br>E   TypeError: 'dict_keys' object is not subscriptable<br><br>―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/test_gdal_utils.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/test_gdal_utils.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/test_gdal_utils.py:37: in <module><br>    from osgeo_utils.auxiliary.extent_util import Extent<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/test_pct.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/test_pct.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/test_pct.py:37: in <module><br>    from osgeo_utils import gdalattachpct, rgb2pct<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/gdal2tiles/test_add_alpha_band_to_string_vrt.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/gdal2tiles/test_add_alpha_band_to_string_vrt.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/gdal2tiles/test_add_alpha_band_to_string_vrt.py:36: in <module><br>    from osgeo_utils import gdal2tiles<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/gdal2tiles/test_add_gdal_warp_options_to_string.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/gdal2tiles/test_add_gdal_warp_options_to_string.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/gdal2tiles/test_add_gdal_warp_options_to_string.py:36: in <module><br>    from osgeo_utils import gdal2tiles<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/gdal2tiles/test_nb_data_bands.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/gdal2tiles/test_nb_data_bands.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/gdal2tiles/test_nb_data_bands.py:35: in <module><br>    from osgeo_utils import gdal2tiles<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/gdal2tiles/test_option_parser.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/gdal2tiles/test_option_parser.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/gdal2tiles/test_option_parser.py:37: in <module><br>    from osgeo_utils import gdal2tiles<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/gdal2tiles/test_reproject_dataset.py ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/gdal2tiles/test_reproject_dataset.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/gdal2tiles/test_reproject_dataset.py:36: in <module><br>    from osgeo_utils import gdal2tiles<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/gdal2tiles/test_setup_input_srs.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/gdal2tiles/test_setup_input_srs.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/gdal2tiles/test_setup_input_srs.py:34: in <module><br>    from osgeo_utils import gdal2tiles<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/gdal2tiles/test_setup_no_data_value.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/gdal2tiles/test_setup_no_data_value.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/gdal2tiles/test_setup_no_data_value.py:34: in <module><br>    from osgeo_utils import gdal2tiles<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting pyscripts/gdal2tiles/test_update_alpha_value_for_non_alpha_inputs.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>ImportError while importing test module '/home/jshaw/work/gdal/autotest/pyscripts/gdal2tiles/test_update_alpha_value_for_non_alpha_inputs.py'.<br>Hint: make sure your test modules/packages have valid Python names.<br>Traceback:<br>pyscripts/gdal2tiles/test_update_alpha_value_for_non_alpha_inputs.py:34: in <module><br>    from osgeo_utils import gdal2tiles<br>E   ModuleNotFoundError: No module named 'osgeo_utils'<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 12 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>Results (5.85s):</span></div><div><br></div><div><br></div><div>If I run a particular file, I get also a many errors (ommited here), and a core dump:</div><div><br></div><div><span style="font-family:monospace">python -m pytest gcore/tiff_read.py <br></span></div><div><span style="font-family:monospace">....<br></span></div><div><span style="font-family:monospace"> gcore/tiff_read.py ⨯✓s    97% █████████▊<br>Segmentation fault (core dumped)<br></span></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">Is there anything basically wrong? Am I using the wrong gdal, not the one just compiled?<br></div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">Thanks<br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__<br>Entre dos pensamientos racionales <br>hay infinitos pensamientos irracionales.<br><br></div></div></div></div>