[Qgis-developer] Python3 and cStringIO in processing

Arnaud Morvan arnaud.morvan at camptocamp.com
Mon Sep 19 08:15:32 PDT 2016


Note that you could also add a symbolic link in .qgis-dev to output dir, 
example :

ln -s <build-dir>/output/python/plugin/* $HOME/.qgis-dev/python/plugins/

And it should load processing plugin from output dir.

No need to make recurrent copies to install dir after that.

Arnaud

Arnaud Morvan
Ingénieur logiciel
Tél: +33 (0)4 58 48 20 32

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com

Le 18/09/2016 13:24, Mathieu Pellerin a écrit :
>
> This error means that your python files have not passed through 2to3. 
> Make sure PORT_PLUGINS flag is turned on.
>
> Also right now, the make script only runs 2to3 against the python code 
> inside the output directory, it does *not* do so for the python code 
> copied to your install location during "make install". You either can 
> run QGIS from your output directory, or (as a temporary ugly hack) 
> copy the content of the python folder in your output directory onto 
> your installation's /share/qgis/python directory.
>
> Hope that helps.
>
>
> On Sep 18, 2016 6:02 PM, "Richard Duivenvoorde" <rdmailings at duif.net 
> <mailto:rdmailings at duif.net>> wrote:
>
>     Hi,
>
>     testing Python3/Qt5 I get the following message:
>
>       File
>     "/home/richard/apps/qgis3/master/debug/share/qgis/python/plugins/processing/tools/vector.py",
>     line 34, in
>         import cStringIO
>
>     According to:
>
>     http://stackoverflow.com/questions/30377620/python-3-4-cstringio-vs-stringio
>     <http://stackoverflow.com/questions/30377620/python-3-4-cstringio-vs-stringio>
>
>     there is no cStringIO anymore in py3
>
>     do I miss a compile/install step or isn't processing not yet ready to
>     use yet?
>
>     Regards,
>
>     Richard Duivenvoorde
>     _______________________________________________
>     Qgis-developer mailing list
>     Qgis-developer at lists.osgeo.org <mailto:Qgis-developer at lists.osgeo.org>
>     List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>     <http://lists.osgeo.org/mailman/listinfo/qgis-developer>
>     Unsubscribe:
>     http://lists.osgeo.org/mailman/listinfo/qgis-developer
>     <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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160919/a65f7125/attachment.html>


More information about the Qgis-developer mailing list