[gdal-dev] GDAL Python and QGIS 2.99?

Even Rouault even.rouault at spatialys.com
Thu Feb 16 08:18:45 PST 2017


On jeudi 16 février 2017 18:07:03 CET Ari Jolma wrote:
> I have QGIS 2.18.3 working on my computer and now I want to work a bit
> on QGIS 2.99 (the trunk).
> 
> I've got to the point where everything else seems to be working fine
> except that the processing plugin does not work (and I want to play with
> that plugin exactly) and it gives the error
> 
> ImportError: ...usr/lib/python2.7/site-packages/osgeo/_gdal.so:
> undefined symbol: PyInstance_Type
> 
> It seems to me that the reason is a conflict between Python 2 and 3.
> QGIS 2.99 seems to mostly use Python 3 (2.18.3 is using 2?) and GDAL
> Python uses 2.
> 
> How should I proceed? Any ideas?

Ari,

Make sure to configure GDAL --with-python=python3
And configure QGIS master with python3 (but I guess that's checked by cmake).

QGIS 3 is Python3 only.
QGIS 2.18 is nominally Python2 and experimentally Python3 .

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170216/092118e9/attachment.html>


More information about the gdal-dev mailing list