Hello all,<br>    I am new to Python binding for QGIS. I have been having problem in getting a Vector Layer to be loaded. I typed the following on python console:<br><br><font face="courier new,monospace">&gt;&gt;&gt; from qgis.core import *<br>

&gt;&gt;&gt; layer=QgsVectorLayer(&quot;/path/to/shape/file.shp&quot;,&quot;layer&quot;,&quot;ogr&quot;)<br>Failed to load<br><br><font face="arial,helvetica,sans-serif">The output is &quot;Failed to load&quot; which isn&#39;t very helpful and doesn&#39;t specify the cause. I am not sure what is the problem. I have confirmed that filepath is correct and the shp file can be opened in QGIS. I would appreciate if someone could help me solve the problem.<br>

<br>Regards,<br>Jitendra<br></font></font>