Andrew,

you don't need to add autotest/ogr to GDAL_DATA.

ARCGEN is now a deprecated driver and must be explictly enabled with GDAL_ENABLE_DEPRECATED_DRIVER_ARCGEN=YES env variable.

Normally this is done in autotest/pytest.ini

I suspect you don't have the pytest-env python module installed.

You should probably just run:

pip3 install -U -r autotest/requirements.txt

which will install it

Even

Le 26/04/2021 à 16:12, Andrew Bell a écrit :
Hi,

I'm trying to run autotests and am failing to find data. For instance, I get the error:

    def test_ogr_arcgen_points():

        ds = ogr.Open('data/arcgen/points.gen')
>       assert ds is not None, 'cannot open dataset'
E       AssertionError: cannot open dataset
E       assert None is not None

I see that this file is in the directory autotest/ogr/data/arcgen

I tried including this directory in GDAL_DATA, but the error persists. My command line is:

DYLD_LIBRARY_PATH=../gdal/.libs PYTHONPATH=/Users/acbell/gdal/gdal/swig/python/build/lib.macosx-10.9-x86_64-3.9 GDAL_DATA=../gdal/data:./ogr pytest ogr/ogr_arcgen.py
Does anyone have information on how to I might resolve this?

Thanks,

--
Andrew Bell
[email protected] <mailto:[email protected]>

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

--
http://www.spatialys.com
My software is free, but my time generally not.

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to