[gdal-dev] New OGR driver for DB2 Spatial support

Even Rouault even.rouault at spatialys.com
Mon Oct 26 14:39:40 PDT 2015


Le lundi 26 octobre 2015 22:35:48, David Adler a écrit :
> I'm getting closer after installing the MS compiler for Python and
> running "python setup.py build" successfully but still get a failure.
> 
> Does the usual GDAL Python user need to go through all this? I see lots
> of information and tutorials about using the GDAL Python API but haven't
> found much about setting up the environment in order to get started.
> 
> *E:\dwacode\gdal\gdalautotest-2.0.1>python run_all.py
> Traceback (most recent call last):
>    File "run_all.py", line 37, in <module>
>      import gdaltest
>    File "pymod\gdaltest.py", line 36, in <module>
>      from osgeo import gdal
>    File
> "e:\dwacode\gdal\swig\python\build\lib.win32-2.7\osgeo\__init__.py", line
>   21, in <module>
>      _gdal = swig_import_helper()
>    File
> "e:\dwacode\gdal\swig\python\build\lib.win32-2.7\osgeo\__init__.py", line
>   17, in swig_import_helper
>      _mod = imp.load_module('_gdal', fp, pathname, description)
> ImportError: DLL load failed: The specified module could not be found.

You also need to put in the PATH the directory where gdalXXX.dll is located

> 
> E:\dwacode\gdal\gdalautotest-2.0.1>dir %pythonpath%
>   Volume in drive E is EDrive
>   Volume Serial Number is 17F6-8B91
> 
>   Directory of e:\dwacode\gdal\swig\python\build\lib.win32-2.7
> 
> 10/26/2015  05:24 PM    <DIR>          .
> 10/26/2015  05:24 PM    <DIR>          ..
> 06/12/2015  03:27 PM               133 gdal.py
> 06/12/2015  03:27 PM               148 gdalconst.py
> 06/12/2015  03:27 PM               130 ogr.py
> 10/26/2015  05:28 PM    <DIR>          osgeo
> 06/12/2015  03:27 PM               130 osr.py
>                 4 File(s)            541 bytes
>                 3 Dir(s)  50,715,795,456 bytes free
> 
>   Directory of e:\dwacode\gdal\swig\python\build\lib.win32-2.7\osgeo
> 
> 10/26/2015  05:28 PM    <DIR>          .
> 10/26/2015  05:28 PM    <DIR>          ..
> 06/12/2015  03:27 PM            73,360 gdal.py
> 06/12/2015  03:27 PM             7,570 gdalconst.py
> 06/12/2015  03:27 PM                53 gdalnumeric.py
> 06/12/2015  03:27 PM            18,843 gdal_array.py
> 06/12/2015  03:27 PM           185,934 ogr.py
> 06/12/2015  03:27 PM            34,532 osr.py
> 10/26/2015  05:24 PM           308,736 _gdal.pyd
> 10/26/2015  05:24 PM            24,064 _gdalconst.pyd
> 10/26/2015  05:25 PM           394,752 _ogr.pyd
> 10/26/2015  05:24 PM           176,640 _osr.pyd
> 06/12/2015  03:27 PM               778 __init__.py
> 10/26/2015  05:28 PM               931 __init__.pyc
>                12 File(s)      1,226,193 bytes
>                 2 Dir(s)  50,715,795,456 bytes free
> *
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus

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


More information about the gdal-dev mailing list