Hi,<br><br><div class="gmail_quote">2013/1/17 skampus <span dir="ltr"><<a href="mailto:stefano.campus@regione.piemonte.it" target="_blank">stefano.campus@regione.piemonte.it</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
in qgis master (1.9..0-165) many gdal functions return this error<br>
for example, translate (convert format)<br>
<br>
An error has occured while executing Python code:<br>
<br>
Traceback (most recent call last):<br>
  File "C:/Documents and<br>
Settings/11186CS/.qgis//python/plugins\GdalTools\GdalTools.py", line 322, in<br>
doTranslate<br>
    self.runToolDialog( d )<br>
  File "C:/Documents and<br>
Settings/11186CS/.qgis//python/plugins\GdalTools\GdalTools.py", line 370, in<br>
runToolDialog<br>
    dlg.show_()<br>
  File "C:/Documents and<br>
Settings/11186CS/.qgis//python/plugins\GdalTools\tools\widgetPluginBase.py",<br>
line 44, in show_<br>
    self.onLayersChanged()<br>
  File "C:/Documents and<br>
Settings/11186CS/.qgis//python/plugins\GdalTools\tools\doTranslate.py", line<br>
98, in onLayersChanged<br>
    self.inSelector.setLayers(<br>
Utils.LayerRegistry.instance().getRasterLayers() )<br>
  File "C:/Documents and<br>
Settings/11186CS/.qgis//python/plugins\GdalTools\tools\GdalTools_utils.py",<br>
line 161, in getRasterLayers<br>
    return filter( self.isRaster, LayerRegistry.layers )<br>
  File "C:/Documents and<br>
Settings/11186CS/.qgis//python/plugins\GdalTools\tools\GdalTools_utils.py",<br>
line 156, in isRaster<br>
    if layer.usesProvider() and layer.providerKey() != 'gdal':<br>
AttributeError: 'QgsRasterLayer' object has no attribute 'usesProvider'<br>
<br>
the error "AttributeError: 'QgsRasterLayer' object has no attribute<br>
'usesProvider'" is the same for other functions<br></blockquote><div><br>it looks like you are using a old version of the plugin that line doesn't exist<br>in current code.<br>Also, the path to your .qgis folder is very weird, take a look at it.<br>
<br>Regards,<br><br>-SL<br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
in 1.8 (osgeo install):<br>
1) it appears a window of gdalinfo.exe crash (fig.1),<br>
2) proper function dialogue window appears, (fig.2),<br>
3) another crash window of gdal function (fig.3)<br>
4)  the operation has been done properly even if  this warning says there<br>
are some problem (fig.4)<br>
<br>
fig01.png <<a href="http://osgeo-org.1560.n6.nabble.com/file/n5028079/fig01.png" target="_blank">http://osgeo-org.1560.n6.nabble.com/file/n5028079/fig01.png</a>><br>
fig02.png <<a href="http://osgeo-org.1560.n6.nabble.com/file/n5028079/fig02.png" target="_blank">http://osgeo-org.1560.n6.nabble.com/file/n5028079/fig02.png</a>><br>
fig03.png <<a href="http://osgeo-org.1560.n6.nabble.com/file/n5028079/fig03.png" target="_blank">http://osgeo-org.1560.n6.nabble.com/file/n5028079/fig03.png</a>><br>
fig04.png <<a href="http://osgeo-org.1560.n6.nabble.com/file/n5028079/fig04.png" target="_blank">http://osgeo-org.1560.n6.nabble.com/file/n5028079/fig04.png</a>><br>
<br>
I tried in other pc but i osserve this strange behaviour only in mine, so i<br>
think it's not appropriate to open a ticket.<br>
please, do you think it's better to delete all and re-install?<br>
<br>
thank you all...<br>
<br>
s.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/strange-errors-of-gdal-functions-tp5028079.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/strange-errors-of-gdal-functions-tp5028079.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">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><br><br clear="all"><br>-- <br>Salvatore Larosa<br>linkedIn: <a href="http://linkedin.com/in/larosasalvatore" target="_blank">http://linkedin.com/in/larosasalvatore</a><br>twitter: @lrssvt<br>skype: s.larosa<br>
IRC: lrssvt on freenode<br>