<div dir="ltr"><div><div><div><div><div><div><div><div>Dear all<br><br></div>I am trying to automate some OSM-data processing in Qgis but I get stuck while importing the processing module.<br><br></div>No matter whether I do<br>

<br><i>from processing.core.VectorWriter import VectorWriter</i><br><br></div>or<br><br><i>import processing.core.VectorWriter</i><br><br></div>or <br><br><i>import processing.core</i><br><br></div>or<br><br><i>import processing</i><br>

<br></div>I always get this warning: <br><br><i>QPixmap: Must construct a QApplication before a QPaintDevice</i><br><br></div>But this only happens in my stand-alone script. If I do <i>import processing.core.VectorWriter</i> in the Python console in Qgis, no problem...<br>

<br>Any idea where this can come from?<br><br></div>Ubuntu 13.10, Python 2.7.5, Qgis 2.0.1<br><div><br></div><div>Thanks and cheers<br><br>Stéphane<br></div><div><br clear="all"><div><div><div><div><div><div><div><div><div>

<div dir="ltr">--<br>"Le mot progrès n'aura aucun sens tant qu'il y aura des enfants malheureux" -- Albert Einstein<br><br>"Si les contacts avec les étrangers lui étaient permis, [le citoyen 
ordinaire] découvrirait que ce sont des créatures semblables à lui-même 
et que la plus grande partie de ce qu'on lui a raconté d'eux est fausse.
 Le monde fermé, scellé, dans lequel il vit, serait brisé, et la 
crainte, la haine, la certitude de son bon droit, desquelles dépend sa 
morale, pourraient disparaître" -- George Orwell ("1984")<br><br>Photos de voyages, photos de montagne: <a href="http://www.henriod.info/" target="_blank">http://www.henriod.info</a><span dir="ltr"><span dir="ltr" title="Appeler ce numéro de téléphone en/au(x) Tadjikistan avec Skype : +992934624662"><span>  </span></span> <br>

</span></div></div>
</div></div></div></div></div></div></div></div></div></div>