[Qgis-developer] Python bindings clear qgsapplication vars

Martin Dobias wonder.sk at gmail.com
Tue May 20 12:15:24 EDT 2008


Hi Tim,

could you please explain me better what do you mean by this clearing
the state of qgsapplication variables? I don't get idea what's wrong.
Isn't the problem related to your recent changes in QgsApplication?

Martin

On Tue, May 20, 2008 at 3:12 PM, Tim Sutton <tim at linfiniti.com> wrote:
> Hi all (and especially Martin & python gurus)
>
> I've encountered an issue with qgspythonutils.cpp which for some
> reason is clearing the state of all qgsapplication variables. The
> offending bit of code is around line 73 where the python bindings are
> imported:
>
>  76   // import QGIS bindings
>  77   if (!runString("from qgis.core import *") öö
>  78       !runString("from qgis.gui import *"))
>  79   ä
>  80     QMessageBox::warning(0, QObject::tr("Python error"),
>  81                          QObject::tr("Couldn't load QGIS
> bindings.ÖnPython support will be disabled."));
>  82     PyErr§Clear();
>  83     exitPython();
>  84     return;
>
>
> note line no's may differ slightly as I addes some dbg statements. Im
> getting this on heron with qt4.4. Can anyone offer a fix - I'm
> stumped...
>
> regards
>
> Tim
>
> --
> Tim Sutton
> QGIS Project Steering Committee Member - Release  Manager
> Visit http://qgis.org for a great open source GIS
> openModeller Desktop Developer
> Visit http://openModeller.sf.net for a great open source ecological
> niche modelling tool
> Home Page: http://tim.linfiniti.com
> Skype: timlinux
> Irc: timlinux on #qgis at freenode.net
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>


More information about the Qgis-developer mailing list