I think you just need to set the qgis_prefix variable this way:<div><br></div><div>qgis_prefix = "/usr"<br><br></div><div>Regards, </div><div><br></div><div>Germán</div><div><br></div><div><br><div class="gmail_quote">

2010/12/29 Albin Blaschka <span dir="ltr"><<a href="mailto:albin.blaschka@standortsanalyse.net">albin.blaschka@standortsanalyse.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Hello!<br>
<br>
I just started to experiment for writing a stand-alone app based on the QGIS-Libraries and Python, following the example <a href="http://desktopgisbook.com/Creating_a_Standalone_GIS_Application_1" target="_blank">http://desktopgisbook.com/Creating_a_Standalone_GIS_Application_1</a> and the PyQGIS Developer Cookbook<br>


<br>
Based on the Starting Kit for a plugin and on the QGIS-Python-Console, everthing is working as expected, but the example for the Standalone-App I just get "Failed to load" when I want to load a shapefile (the window and the dialog open fine), which otherwise as noted above loads just fine...<br>


I get no other error message as the "failed to load"...<br>
(I am using the downloaded version of the Shapeviewer-Demo-App, I have it attached)<br>
<br>
I am on Kubuntu 10.04.1, Lucid Lynx,<br>
QGIS (1.6) and related stuff installed from<br>
<a href="http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu" target="_blank">http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu</a> lucid main<br>
PYTHONPATH=/usr/share/qgis/python<br>
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)<br>
<br>
What am I missing?<br>
<br>
I tried from the Python-Console from within QGIS (where everthing works) to print PYTHONPATH, but did only get "None" (with print os.getenv("PYTHONPATH"))<br>
<br>
I am also a Python-Newbie, btw...<br>
<br>
Thank you in advance...<br>
<br>
Albin<br><font color="#888888">
<br>
-- <br>
| Albin Blaschka, Mag.rer.nat.<br>
| Etrichstrasse 26, A-5020 Salzburg<br>
| * <a href="http://www.albinblaschka.info" target="_blank">www.albinblaschka.info</a> * <a href="http://www.thinkanimal.info" target="_blank">www.thinkanimal.info</a> *<br>
| - It's hard to live in the mountains, hard but not hopeless!<br>
<br>
<br>
<br>
<br>
<br>
</font><br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">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>
<br></blockquote></div><br><br clear="all"><br>-- <br>-----------<br>  |\__  <br>(:>__)(<br>  |/    <br><br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br>


</div>