<div dir="ltr"><div><p dir="ltr">For the python console, you need to install qscintilla. On 12.10 I installed libqscintilla2-dev and python-qscintilla2. The dev package may not be needed, but it works for me.<br></p><p>The python libraries are located in the $INSTALLPATH/share/qgis/python directory. Add that directory to your python path to import pyspatialite outside of QGIS. From within a python script you can :</p>
<p>import sys</p><p>sys.path.append(r"/home/tgrossen/Apps/QGIS/share/qgis/python")</p><p>from pyspatialite import dbapi2 as db</p><p><br></p>Hope that helps.<br><br></div>Eric<br><br><br><div><div><div class="gmail_quote">
On Feb 11, 2013 9:22 AM, "Timo Grossenbacher" <<a href="mailto:wnstnsmth@yahoo.com" target="_blank">wnstnsmth@yahoo.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

I built the latest QGIS version on Ubuntu 12.04, following exactly these<br>
steps:<br>
<br>
<a href="http://www.qgis.org/api/INSTALL.html#toc3" target="_blank">http://www.qgis.org/api/INSTALL.html#toc3</a><br>
<br>
The only things I changed in ccmake .. were setting<br>
CMAKE_INSTALL_PREFIX=/home/tgrossen/Apps/QGIS and WITH_PYSPATIALITE=ON<br>
<br>
Before make install, I conducted tests with make test:<br>
93% tests passed, 4 tests failed out of 57<br>
<br>
Total Test time (real) = 297.32 sec<br>
<br>
The following tests FAILED:<br>
          9 - qgis_rasterlayertest (Failed)<br>
         28 - qgis_composerhtmltest (Failed)<br>
         41 - PyQgsRasterLayer (Failed)<br>
         51 - PyQgsComposerMap (Failed)<br>
Errors while running CTest<br>
make: *** [test] Error 8<br>
<br>
As you can see, make test itself crashed.<br>
<br>
After make install, I also had to do this:<br>
<a href="http://hub.qgis.org/wiki/quantum-gis/Building_QGIS_from_Source" target="_blank">http://hub.qgis.org/wiki/quantum-gis/Building_QGIS_from_Source</a>, which<br>
fortunately worked.<br>
<br>
Anyway,there are several things that are weird when executing the qgis<br>
binary:<br>
<br>
tgrossen@tgrossen-VirtualBox:~/Apps/QGIS/bin$ ./qgis<br>
Warning: loading of qgis translation failed<br>
[/home/tgrossen/Apps/QGIS/share/qgis/i18n//qgis_en_US]<br>
Warning: loading of qt translation failed<br>
[/usr/share/qt4/translations/qt_en_US]<br>
<br>
And then, after the desktop has loaded, I want to open up a Python shell,<br>
but that's what I get:<br>
exceptions.ImportError: No module named Qsci<br>
<br>
1. Question: What do I have to do in order to use the Python console?<br>
<br>
2. Question: I explicitly compiled pyspatialite, now where do I find this<br>
library and how can I include into my regular Python path, so I can use it<br>
outside of QGIS too?<br>
<br>
<br>
<br>
<br>
-----<br>
<a href="http://wnstnsmth.net" target="_blank">wnstnsmth.net</a><br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Executing-qgis-after-building-from-git-results-in-errors-and-warnings-tp5033486.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Executing-qgis-after-building-from-git-results-in-errors-and-warnings-tp5033486.html</a><br>


Sent from the Quantum GIS - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>
</div></div></div>