[Qgis-developer] Error when importing processing.core.VectorWriter

Stéphane Henriod s at henriod.info
Sun Feb 2 07:01:56 PST 2014


Dear all

I am trying to automate some OSM-data processing in Qgis but I get stuck
while importing the processing module.

No matter whether I do

*from processing.core.VectorWriter import VectorWriter*

or

*import processing.core.VectorWriter*

or

*import processing.core*

or

*import processing*

I always get this warning:

*QPixmap: Must construct a QApplication before a QPaintDevice*

But this only happens in my stand-alone script. If I do *import
processing.core.VectorWriter* in the Python console in Qgis, no problem...

Any idea where this can come from?

Ubuntu 13.10, Python 2.7.5, Qgis 2.0.1

Thanks and cheers

Stéphane

--
"Le mot progrès n'aura aucun sens tant qu'il y aura des enfants malheureux"
-- Albert Einstein

"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")

Photos de voyages, photos de montagne: http://www.henriod.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140202/f6d17fec/attachment.html>


More information about the Qgis-developer mailing list