[Qgis-developer] Python bindings clear qgsapplication vars

Tim Sutton tim at linfiniti.com
Tue May 20 09:12:44 EDT 2008


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


More information about the Qgis-developer mailing list