Discussion:
[Community] Installing GDAL1.6 on python2.6
adase akude
2011-05-18 12:23:55 UTC
Permalink
hi,

I am trying to build and install GDAL python bindings and I am getting the ff errors.
Can anybody help.


C:\gdal-1.6.1\swig\python>python setup.py build
numpy include C:\Python26\lib\site-packages\numpy\core\include
setup.py:78: DeprecationWarning: The popen2 module is deprecated. Use the subpr
ocess module.
import popen2
running build
running build_py
creating build
creating build\lib.win32-2.6
copying gdal.py -> build\lib.win32-2.6
copying ogr.py -> build\lib.win32-2.6
copying osr.py -> build\lib.win32-2.6
copying gdalconst.py -> build\lib.win32-2.6
copying gdalnumeric.py -> build\lib.win32-2.6
creating build\lib.win32-2.6\osgeo
copying osgeo\gdal.py -> build\lib.win32-2.6\osgeo
copying osgeo\gdalconst.py -> build\lib.win32-2.6\osgeo
copying osgeo\gdalnumeric.py -> build\lib.win32-2.6\osgeo
copying osgeo\gdal_array.py -> build\lib.win32-2.6\osgeo
copying osgeo\ogr.py -> build\lib.win32-2.6\osgeo
copying osgeo\osr.py -> build\lib.win32-2.6\osgeo
copying osgeo\__init__.py -> build\lib.win32-2.6\osgeo
running build_ext
building 'osgeo._gdal' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
creating build\temp.win32-2.6\Release\extensions
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -I../../port -I../../gcore -I../../alg -I../../ogr/ -IC:\Python2
6\include -IC:\Python26\PC -IC:\Python26\lib\site-packages\numpy\core\include /T
pextensions/gdal_wrap.cpp /Fobuild\temp.win32-2.6\Release\extensions/gdal_wrap.o
bj
gdal_wrap.cpp
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C
4530: C++ exception handler used, but unwind semantics are not enabled. Specify
/EHsc
../../port\cpl_port.h(88) : fatal error C1083: Cannot open include file: 'cpl_co
nfig.h': No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' fa
iled with exit status 2


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20110518/81a3dd9e/attachment.htm>
Sean Gillies
2011-05-18 14:11:33 UTC
Permalink
The best support for GDAL is on the GDAL list.

Regards,

On May 18, 2011 6:24 AM, "adase akude" <kwakueli at hotmail.com> wrote:

hi,

I am trying to build and install GDAL python bindings and I am getting the
ff errors.
Can anybody help.


C:\gdal-1.6.1\swig\python>python setup.py build
numpy include C:\Python26\lib\site-packages\numpy\core\include
setup.py:78: DeprecationWarning: The popen2 module is deprecated. Use the
subpr
ocess module.
import popen2
running build
running build_py
creating build
creating build\lib.win32-2.6
copying gdal.py -> build\lib.win32-2.6
copying ogr.py -> build\lib.win32-2.6
copying osr.py -> build\lib.win32-2.6
copying gdalconst.py -> build\lib.win32-2.6
copying gdalnumeric.py -> build\lib.win32-2.6
creating build\lib.win32-2.6\osgeo
copying osgeo\gdal.py -> build\lib.win32-2.6\osgeo
copying osgeo\gdalconst.py -> build\lib.win32-2.6\osgeo
copying osgeo\gdalnumeric.py -> build\lib.win32-2.6\osgeo
copying osgeo\gdal_array.py -> build\lib.win32-2.6\osgeo
copying osgeo\ogr.py -> build\lib.win32-2.6\osgeo
copying osgeo\osr.py -> build\lib.win32-2.6\osgeo
copying osgeo\__init__.py -> build\lib.win32-2.6\osgeo
running build_ext
building 'osgeo._gdal' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
creating build\temp.win32-2.6\Release\extensions
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W
3 /GS- /DNDEBUG -I../../port -I../../gcore -I../../alg -I../../ogr/
-IC:\Python2
6\include -IC:\Python26\PC
-IC:\Python26\lib\site-packages\numpy\core\include /T
pextensions/gdal_wrap.cpp
/Fobuild\temp.win32-2.6\Release\extensions/gdal_wrap.o
bj
gdal_wrap.cpp
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) :
warning C
4530: C++ exception handler used, but unwind semantics are not enabled.
Specify
/EHsc
../../port\cpl_port.h(88) : fatal error C1083: Cannot open include file:
'cpl_co
nfig.h': No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\cl.exe"' fa
iled with exit status 2


_______________________________________________
Community mailing list
Community at lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20110518/786284b7/attachment.htm>
PAOLONI ACHILLE - Info
2011-05-18 23:39:01 UTC
Permalink
I've experienced same problem and sometimes solve it installing and
configuring MS Visual Studio; your error refer to VS2008 version. Achille

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20110519/2da55317/attachment.htm>
Loading...