<div dir="ltr">Hi Even,<div><br></div><div>I get this output from a Python 3.4 build (VS2012):</div><div><br></div><div><br></div><div><div><span class="" style="white-space:pre">     </span>E:\builds\Python34\python.exe setup.py build</div><div>running build</div><div>running build_py</div><div>creating build</div><div>creating build\lib.win32-3.4</div><div>copying gdal.py -> build\lib.win32-3.4</div><div>copying ogr.py -> build\lib.win32-3.4</div><div>copying osr.py -> build\lib.win32-3.4</div><div>copying gdalconst.py -> build\lib.win32-3.4</div><div>copying gdalnumeric.py -> build\lib.win32-3.4</div><div>creating build\lib.win32-3.4\osgeo</div><div>copying osgeo\gdal.py -> build\lib.win32-3.4\osgeo</div><div>copying osgeo\gdalconst.py -> build\lib.win32-3.4\osgeo</div><div>copying osgeo\gdalnumeric.py -> build\lib.win32-3.4\osgeo</div><div>copying osgeo\gdal_array.py -> build\lib.win32-3.4\osgeo</div><div>copying osgeo\ogr.py -> build\lib.win32-3.4\osgeo</div><div>copying osgeo\osr.py -> build\lib.win32-3.4\osgeo</div><div>copying osgeo\__init__.py -> build\lib.win32-3.4\osgeo</div><div>Fixing build\lib.win32-3.4\gdal.py build\lib.win32-3.4\ogr.py build\lib.win32-3.4\osr.py build\lib.win32-3.4\gdalconst.py build\lib.win32-3.4\gdalnumeric.py build\lib.win32-3.4\osgeo\gdal.py build\lib.win32-3.4\osgeo\gdalconst.py build\lib.win32-3.4\osgeo\gdalnumeric.py build\lib.win32-3.4\osgeo\gdal_array.py build\lib.win32-3.4\osgeo\ogr.py build\lib.win32-3.4\osgeo\osr.py build\lib.win32-3.4\osgeo\__init__.py</div><div>Skipping implicit fixer: ws_comma</div><div>Fixing build\lib.win32-3.4\gdal.py build\lib.win32-3.4\ogr.py build\lib.win32-3.4\osr.py build\lib.win32-3.4\gdalconst.py build\lib.win32-3.4\gdalnumeric.py build\lib.win32-3.4\osgeo\gdal.py build\lib.win32-3.4\osgeo\gdalconst.py build\lib.win32-3.4\osgeo\gdalnumeric.py build\lib.win32-3.4\osgeo\gdal_array.py build\lib.win32-3.4\osgeo\ogr.py build\lib.win32-3.4\osgeo\osr.py build\lib.win32-3.4\osgeo\__init__.py</div><div>Skipping implicit fixer: ws_comma</div><div>running build_ext</div><div>building 'osgeo._gdal' extension</div><div>creating build\temp.win32-3.4</div><div>creating build\temp.win32-3.4\Release</div><div>creating build\temp.win32-3.4\Release\extensions</div><div>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I../../port -I../../gcore -I../../alg -I../../ogr/ -IE:\builds\Python34\include -IE:\builds\Python34\include -IE:\builds\Python34\lib\site-packages\numpy\core\include /Tpextensions/gdal_wrap.cpp /Fobuild\temp.win32-3.4\Release\extensions/gdal_wrap.obj</div><div>gdal_wrap.cpp</div><div>extensions/gdal_wrap.cpp(2451) : error C3861: 'PyCObject_Import': identifier not found</div><div>extensions/gdal_wrap.cpp(2521) : error C3861: 'PyCObject_FromVoidPtr': identifier not found</div><div>extensions/gdal_wrap.cpp(2544) : error C3861: 'PyCObject_AsVoidPtr': identifier not found</div><div>extensions/gdal_wrap.cpp(2549) : error C3861: 'PyCObject_FromVoidPtr': identifier not found</div><div>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\xlocale(336) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc</div><div>e:\sdk\vc11\gdal-trunk\gdal\port\cpl_config.h(16) : warning C4005: 'HAVE_SNPRINTF' : macro redefinition</div><div>        e:\builds\python34\include\pyerrors.h(450) : see previous definition of 'HAVE_SNPRINTF'</div><div>e:\sdk\vc11\gdal-trunk\gdal\port\cpl_config.h(62) : warning C4005: 'HAVE_DIRECT_H' : macro redefinition</div><div>        e:\builds\python34\include\pyconfig.h(467) : see previous definition of 'HAVE_DIRECT_H'</div><div>../../gcore\gdal_priv.h(547) : warning C4251: 'GDALColorTable::aoEntries' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'GDALColorTable'</div><div>        with</div><div>        [</div><div>            _Ty=GDALColorEntry</div><div>        ]</div><div>../../gcore\gdal_priv.h(932) : warning C4251: 'GDALDriverManager::oMapNameToDrivers' : class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'GDALDriverManager'</div><div>        with</div><div>        [</div><div>            _Kty=CPLString,</div><div>            _Ty=GDALDriver *</div><div>        ]</div><div>extensions/gdal_wrap.cpp(3003) : warning C4244: 'argument' : conversion from 'GIntBig' to 'Py_ssize_t', possible loss of data</div><div>extensions/gdal_wrap.cpp(3016) : warning C4244: 'argument' : conversion from 'GIntBig' to 'Py_ssize_t', possible loss of data</div><div>extensions/gdal_wrap.cpp(3019) : warning C4244: 'return' : conversion from 'GIntBig' to 'int', possible loss of data</div><div>extensions/gdal_wrap.cpp(4136) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data</div><div>extensions/gdal_wrap.cpp(4137) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data</div><div>extensions/gdal_wrap.cpp(4218) : warning C4244: '=' : conversion from 'GIntBig' to 'int', possible loss of data</div><div>extensions/gdal_wrap.cpp(4392) : warning C4244: 'argument' : conversion from 'GIntBig' to 'Py_ssize_t', possible loss of data</div><div>extensions/gdal_wrap.cpp(4414) : warning C4244: 'argument' : conversion from 'GIntBig' to 'size_t', possible loss of data</div><div>extensions/gdal_wrap.cpp(4419) : warning C4244: 'argument' : conversion from 'GIntBig' to 'size_t', possible loss of data</div><div>extensions/gdal_wrap.cpp(4422) : warning C4244: 'argument' : conversion from 'GIntBig' to 'size_t', possible loss of data</div><div>extensions/gdal_wrap.cpp(4790) : warning C4244: 'argument' : conversion from 'GIntBig' to 'Py_ssize_t', possible loss of data</div><div>extensions/gdal_wrap.cpp(4813) : warning C4244: 'argument' : conversion from 'GIntBig' to 'size_t', possible loss of data</div><div>extensions/gdal_wrap.cpp(4840) : warning C4244: 'argument' : conversion from 'GIntBig' to 'Py_ssize_t', possible loss of data</div></div><div><br></div><div><br></div><div><br></div><div>builds at gisinternals use older python releases which don't produce this problem.</div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>Tamas</div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-27 14:56 GMT+01:00 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le mardi 27 janvier 2015 14:49:01, Tamas Szekeres a écrit :<br>
<span class="">> Hi Even,<br>
><br>
> I've noticed build issue on Windows using the latest (stable) Python3.x<br>
> versions, hope that this fix will solve that problem too.<br>
<br>
</span>Hi Tamas,<br>
<br>
Thas would be surprising since my commits solved runtime failure, not build<br>
failure. Which error do you get ?<br>
<br>
I don't see any error when looking at :<br>
<a href="http://build.gisinternals.com/sdk/build-output/vc10-20150127-6-56-46-62-vc10-
dev.txt" target="_blank">http://build.gisinternals.com/sdk/build-output/vc10-20150127-6-56-46-62-vc10-<br>
dev.txt</a><br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Thanks,<br>
><br>
> Tamas<br>
><br>
> 2015-01-27 13:44 GMT+01:00 Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>>:<br>
> > Hi,<br>
> ><br>
> > Just to notify you that I've added a python3 branch for Travis-CI testing<br>
> > : <a href="https://travis-ci.org/rouault/gdal_coverage/branches" target="_blank">https://travis-ci.org/rouault/gdal_coverage/branches</a><br>
> ><br>
> > Before today's commits, Python 3 bindings had been broken in trunk for a<br>
> > few<br>
> > months without anyone noticying/complaining. Now this should no longer<br>
> > happen.<br>
> ><br>
> > Even<br>
> ><br>
> > --<br>
> > Spatialys - Geospatial professional services<br>
> > <a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
> > _______________________________________________<br>
> > gdal-dev mailing list<br>
> > <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
</div></div></blockquote></div><br></div>