[gdal-dev] How to run autotest

Even Rouault even.rouault at spatialys.com
Sat Apr 6 00:28:41 PDT 2019


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


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list