<div>Hello,</div>
<div> </div>
<div>I&#39;m currently developping a small stand alone app with qgis python bindings and spatialite. So far I managed to load a vector layer from de spatialite database, but when I try to UPDATE or INSERT anything I get the folowing error:</div>

<div> </div>
<div>OperationalError: no such functions geometry constraints</div>
<div> </div>
<div>I&#39;m guessing this is because the libspatialite extension is not loaded, but when I try to load it using query.exec_(&quot;SELECT load_extension(&#39;libspatialite-1.dll&#39;)&quot;) nothing happens. I&#39;m using QGIS 1.4.0-1 &quot;enceladus&quot; and python 2.5, using the PyQt4 modules included in qgis.</div>

<div>How can I load the extension? How can I upgrade sqlite3 so it allows to load the extension? sqlite3.version_info returns (2,3,2) but I&#39;m making the conection using QtSql.</div>
<div> </div>
<div>any help is greatly appreciated.</div>
<div> </div>
<div>Marcelo</div>
<div> </div>
<div> </div>
<div><br clear="all"><br>-- <br>Marcelo Reyes<br>Edif. Alborada Of. 605<br>Tel. 2201034<br>Cel. 72501267<br>La Paz Bolivia.<br></div>