[gdal-dev] How to run autotest

Fengting Chen fengting.chen at oracle.com
Mon Apr 8 14:20:45 PDT 2019


I rebuilt GDAl with python bindings without errors. Now I got a 
different error:

ImportError while loading conftest 
'/scratch/gdal/gdal/autotest/conftest.py'.
/home/fechen/.local/lib/python2.7/site-packages/six.py:709: in exec_
     exec("""exec _code_ in _globs_, _locs_""")
conftest.py:9: in <module>
     from osgeo import gdal
../gdal/swig/python/build/lib.linux-x86_64-2.7/osgeo/__init__.py:21: in 
<module>
     _gdal = swig_import_helper()
../gdal/swig/python/build/lib.linux-x86_64-2.7/osgeo/__init__.py:17: in 
swig_import_helper
     _mod = imp.load_module('_gdal', fp, pathname, description)
E   ImportError: /scratch/gdal/gdal/gdal/.libs/libgdal.so.20: undefined 
symbol: _Z17CPLHaveRuntimeAVXv

Any idea why  libgdal.so.20 has undefined symbol?

Thanks,

-Fengting

On 4/6/2019 3:28 AM, Even Rouault wrote:
> Fengting,
>
> 2 things to check:
> - first that the python bindings have been built. Did you ./configure --with-
> python ? Or alternatively "cd swig/python && make"
> - and that the Python buindings are in the PYTHONPATH. Sourcing scripts/
> setdevenv.sh will do it
>
> Even
>
>> Hi,
>>
>> I followed the description in CONTRIUBTING.md on running autotest suite:
>>
>> /cd ../autotest//
>> //pip install -r requirements.txt//
>> //pytest/
>>
>> At the last step, pytest gave the following error:
>>
>> /ImportError while loading conftest
>> '/scratch/gdal/gdal/autotest/conftest.py'.//
>> ///home/fechen/.local/lib/python2.7/site-packages/six.py:709: in exec_//
>> //    exec("""exec _code_ in _globs_, _locs_""")//
>> //conftest.py:9: in <module>//
>> //    from osgeo import gdal//
>> //E   ImportError: No module named osgeo/
>>
>> Any thing I need to do to fix this?
>>
>> Thanks,
>>
>> -Fengting
>


More information about the gdal-dev mailing list