Hi all, <br><br>if I run the following code from  a terminal:<br><br>brushtyler@Joe-Notebook:~$ python<br>&gt;&gt;&gt; from qgis.core import *<br>&gt;&gt;&gt; QgsApplication.setPrefixPath(&#39;/usr/local/qgis/&#39;, True)<br>

&gt;&gt;&gt; QgsApplication.initQgis()<br><br>I get<br><br>/home/brushtyler/projects/sources/qgis/src/core/qgsproviderregistry.cpp: 84: (QgsProviderRegistry) Checking /usr/local/qgis//lib/qgis/plugins for provider plugins<br>

/home/brushtyler/projects/sources/qgis/src/core/qgsmessageoutput.cpp: 65: (showMessage) No Data Providers:<br>/home/brushtyler/projects/sources/qgis/src/core/qgsmessageoutput.cpp: 69: (showMessage) No QGIS data provider plugins found in:<br>

/usr/local/qgis//lib/qgis/plugins<br>No vector layers can be loaded. Check your QGIS installation<br><br>As far as you can see, the QgsApplication searches providers in <br>/usr/local/qgis//lib/qgis/plugins<br>but in my local installation the qgis providers are in <br>

/usr/local/lib/qgis/plugins<br><br>So just changing the code above to <br><br>&gt;&gt;&gt; from qgis.core import *<br>
&gt;&gt;&gt; QgsApplication.setPrefixPath(&#39;/usr/local/&#39;, True)<br>
&gt;&gt;&gt; QgsApplication.initQgis()<br><br>and providers are loaded well  :)<br>I hope this helps.<br><br>Cheers.<br><br><div class="gmail_quote">On Wed, Jul 6, 2011 at 1:12 PM, leonidas <span dir="ltr">&lt;<a href="mailto:leonidas_liakos@yahoo.gr">leonidas_liakos@yahoo.gr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I also have the same problem like Brian. Did anyone found the problem?<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Fwd-Qgis-user-QgsVectorLayer-causes-Failed-to-load-error-tp6482726p6553989.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Fwd-Qgis-user-QgsVectorLayer-causes-Failed-to-load-error-tp6482726p6553989.html</a><br>


Sent from the qgis-developer mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Giuseppe Sucameli<br><br>