[Qgis-developer] Do Python plugins already work with QGIS 3?
Marco Bernasocchi
marco at opengis.ch
Tue Dec 13 07:40:33 PST 2016
could be,
it could also be a PYTHONPATH issue depenndign where you installed the
bindings.
can you import them in a python prompt?
to build gdal with python 3 you need to do some thing like:
cd gdal/swig/python
python3 setup.py build & python3 setup.py install
IIRC gdal compiles in its source dir so for qgis for android I just used
to copy the whole GDAL folder before building to keep a clean copy.
more info:
https://trac.osgeo.org/gdal/wiki/GdalOgrInPython
https://trac.osgeo.org/gdal/wiki/BuildingOnUnix
ciao
Marco
On 13.12.2016 16:23, Andreas Neumann wrote:
> Hi,
>
> I get a message:
>
> ------------
>
> Unable to load GdalTools plugin.
>
> The required "osgeo [python-gdal]" module is missing.
>
> Install it and try again.
>
>
> ------------
>
>
> then there is a new error message:
>
>
> --------------
>
>
> ImportError: No module named 'osgeo'
>
>
> --------------
>
>
> I installed gdal from source, but enabled Python and also enabled shared
> libraries.
>
>
> Could it be that gdal was compiled with Python 2 while QGIS runs with
> Python 3?
>
>
> If that's the case, how can i compile GDAL with Python 3 support?
>
>
> Can I compile gdal with Python 2 and 3 support if I want QGIS 2.x and
> 3.x on the same machine?
>
> Thanks,
> Andreas
>
> On 13.12.2016 15:55, Tom Chadwin wrote:
>> Define "fail", I guess. Most plugins won't work without modification
>> [citation needed], but it would be good to know *how* it fails, as you are
>> right that there could be a more general issue.
>>
>>
>>
>> -----
>> Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
>> --
>> View this message in context: http://osgeo-org.1560.x6.nabble.com/Do-Python-plugins-already-work-with-QGIS-3-tp5299693p5299694.html
>> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
--
Marco Bernasocchi
OPENGIS.ch - berna.io - 27summits.ch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161213/1938cbe2/attachment.sig>
More information about the Qgis-developer
mailing list