[osgeo4w-dev] Wrong GDAL VersionInfo

Pedro VenĂ¢ncio pedrongvenancio at gmail.com
Thu May 7 16:30:01 PDT 2020


Hi all,

I'm seeing that gdal 3.2.0dev is giving a wrong gdal.VersionInfo() output
with OSGeo4W:

import gdal
gdal.VersionInfo()
'3000400'

I opened this issue in GDAL mailing list and Even suggested to check if I
had intalled the python3-gdal-dev package and, in fact, python3-gdal-dev
was not installed.

First question is, should it not be installed by default with gdal-dev?

After installed the package and run gdal-dev-py3-env to set the appropriate
environment, version became correct in OSGeo4W Shell

gdal.VersionInfo()
'3020000'

However, I was trying it inside QGIS, in Python console, and there the
output is still '3000400', both in qgis-rel-dev (3.12.2) and qgis-dev
(3.13.0-master), compiled against GDAL 3.2.0dev.

I tried to change in qgis-rel-dev-g7.bat
from
call gdal-dev-env.bat
to
call gdal-dev-py3-env.bat

but without success. It seems that something more needs to be changed. Any
hint?

Thank you very much!

Best regards,
Pedro VenĂ¢ncio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/osgeo4w-dev/attachments/20200508/3617e86e/attachment.html>


More information about the osgeo4w-dev mailing list